/*
 * Salesforce-Inspired Form Styles
 * Key Principles: Clean lines, spacious layout, clear hierarchy.
 */

/* === General Form & Container Styling === */
.vehicle_admin {
    /* Salesforce background is typically very light or white */
    background-color: #f3f3f3;
    padding: 24px;
    border: 1px solid #dddbda; /* Light border similar to SLDS card/panel */
    border-radius: 4px;
    max-width: 600px; /* Constrain width for better readability */
    margin: 40px auto; /* Center the form on the page */
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05);
}

/* === Form Grid Layout === */
.vehicle_admin form {
    display: grid;
    /* Two columns: one for label, one for input/value */
    grid-template-columns: 1fr 2fr;
    gap: 16px 20px; /* Spacing between rows and columns */
    align-items: center; /* Vertically center items */
}

/* === Label Styling === */
.vehicle_admin label {
    font-size: 14px;
    color: #080707; /* Dark text for readability */
    font-weight: 500; /* Slightly bolder than standard text */
    text-align: right; /* Align labels to the right for a clean break */
    padding-right: 10px;
}

/* === Input Field Styling === */
.vehicle_admin input[type="text"],
.vehicle_admin input[type="number"],
.vehicle_admin input[type="date"] {
    width: 100%;
    padding: 8px 12px;
    margin: 0;
    border: 1px solid #dddbda; /* SLDS standard border color */
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.1s linear, box-shadow 0.1s linear;
}

.vehicle_admin input[type="text"]:focus,
.vehicle_admin input[type="number"]:focus,
.vehicle_admin input[type="date"]:focus {
    /* Focus state uses Salesforce blue */
    border-color: #0070d2;
    outline: none;
    box-shadow: 0 0 0 1px #0070d2;
}

/* Style for disabled input field (vehicle_id) */
.vehicle_admin input[disabled] {
    background-color: #ecebea; /* Light gray background for disabled fields */
    color: #54698d;
    cursor: not-allowed;
    border-color: #dddbda;
}

/* === Submit Button Styling (The Salesforce Blue Button) === */
.vehicle_admin input[type="submit"] {
    /* Make the button span both columns */
    grid-column: 1 / span 2;
    justify-self: end; /* Align the button to the right of the form */
    margin-top: 20px;

    /* Salesforce Primary Button Styling */
    background-color: #0070d2; /* Brand Blue */
    color: #ffffff; /* White text */
    padding: 8px 16px;
    border: 1px solid #0070d2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease;
}

.vehicle_admin input[type="submit"]:hover {
    background-color: #005fb2; /* Slightly darker blue on hover */
    border-color: #005fb2;
}

