body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80');
    /* Subtle car bg */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Overlay to darken background image */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 32, 68, 0.9), rgba(15, 32, 68, 0.8));
    z-index: -1;
}

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    transition: max-width 0.3s ease;
}

/* LARGE SCREENS (1400px+) - Standard Desktop */
@media (min-width: 1400px) {
    :root {
        --container-width: 1320px;
        /* Bootstrap XXL standard */
    }
}

/* EXTRA LARGE SCREENS (1600px+) - Wide Monitors */
@media (min-width: 1600px) {
    :root {
        --container-width: 1500px;
        /* Gives more breathing room */
    }
}

/* ULTRA WIDE (1920px+) - 1080p Full & 2K/4K */
@media (min-width: 1920px) {
    :root {
        --container-width: 1700px;
    }

    /* Increase font sizes slightly for 4K visibility */
    body {
        font-size: 18px;
    }
}

/* --- Navbar Customization --- */
.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    font-style: italic;
    color: white !important;
}

.navbar-brand span {
    color: var(--accent-orange);
}

.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

/* Profile Image */
.avatar-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* --- Mobile Offcanvas (Sidebar) --- */
.offcanvas {
    background-color: #0F2044;
    color: white;
}

.offcanvas .btn-close {
    filter: invert(1);
}

/* --- 3. Main Dashboard Container --- */
.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-glow);
    min-height: 80vh;
}

.dashboard-header {
    margin-bottom: 35px;
}

.dashboard-header h1 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.dashboard-header p {
    color: var(--text-light);
}

/* --- 4. KPI Cards --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
    box-shadow: var(--shadow-glow);
}


.kpi-card:hover {
    transform: translateY(-3px);
}

.kpi-card.blue {
    background: var(--blue-gradient);
    color: white;
}

.kpi-card.orange {
    background: var(--accent-gradient);
    color: white;
}

.kpi-card.light {
    background: var(--bg-gray);
    border: 1px solid #eee;
    color: var(--text-main);
}

.kpi-icon {
    font-size: 24px;
    opacity: 0.9;
}

.kpi-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
}

.kpi-info span {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 500;
}

/* --- 5. Content Sections --- */
.content-section {
    background: var(--bg-card);
    margin-bottom: 30px;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.section-head h2,
.section-head h3 {
    font-size: 18px;
    color: var(--text-main);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.btn-accent {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.link-sm {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

/* --- 6. Vehicle Grid --- */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.vehicle-card {
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
}

.vehicle-card:hover {
    box-shadow: var(--shadow-soft);
}

.vehicle-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.vehicle-details {
    padding: 15px;
}

.vehicle-details h4 {
    margin-bottom: 5px;
    color: var(--text-main);
}

.vehicle-details p {
    font-size: 12px;
    color: var(--text-light);
}

/* --- 7. Split Layout (Table & Chart) --- */
.split-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* 55% / 45% split */
    gap: 30px;
    margin-bottom: 30px;
}

/* Table */
.styled-table {
    width: 100%;
    border-collapse: collapse;
}

.styled-table th {
    text-align: left;
    font-size: 12px;
    color: var(--text-light);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.styled-table td {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-main);
    border-bottom: 1px solid #f9f9f9;
    vertical-align: middle;
}

.car-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumb {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-info span {
    font-size: 12px;
    color: var(--text-light);
}

/* Chart Area */
.chart-wrapper {
    background: var(--bg-gray);
    padding: 20px;
    border-radius: var(--radius-md);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
}

.chart-select {
    border: none;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-light);
    font-size: 11px;
}

.bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 150px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.bar {
    width: 8%;
    background: #5A8DEE;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    opacity: 0.8;
}

.bar:hover {
    opacity: 1;
    background: #254EDB;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.chart-labels span {
    font-size: 10px;
    color: var(--text-light);
    width: 8%;
    text-align: center;
}

/* --- 8. Reports Section --- */
.reports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 20px;
}

.report-card {
    background: var(--bg-gray);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: #E2E8F0;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* --- 9. Responsive --- */
@media (max-width: 900px) {
    .split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .dashboard-card {
        padding: 20px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        clip-path: circle(0% at 100% 0);
        /* Cool circular reveal effect */
        transition: all 0.5s ease-in-out;
        z-index: 100;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
        /* Expands menu */
    }

    .nav-item {
        color: white;
        font-size: 18px;
    }
}

/* --- Existing styles from dashboard... --- */

/* --- 10. Vehicle Registration Form (New) --- */

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.form-header {
    background: var(--primary-blue);
    color: var(--text-white);
    padding: 20px 30px;
}

.form-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.vehicle-form {
    padding: 30px;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.form-input,
.form-select {
    padding: 12px 15px;
    border: 1px solid #dce4ec;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-main);
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fcfdfe;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 66, 159, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237F8C8D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Photo Upload Grid */
.section-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.photo-upload {
    border: 2px dashed #dce4ec;
    border-radius: var(--radius-md);
    background: #fcfdfe;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    cursor: pointer;
    transition: 0.3s;
}

.photo-upload:hover {
    border-color: var(--primary-blue);
    background: #f4f7fa;
}

.photo-upload input[type="file"] {
    display: none;
}

.photo-upload span {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

/* Document Upload Buttons */
.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-blue);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    width: fit-content;
}

.file-upload-btn:hover {
    background: var(--primary-dark);
}

.file-upload-btn input[type="file"] {
    display: none;
}

/* Input with Icon (for Price & Dates) */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    color: var(--text-light);
    font-size: 16px;
}

.input-with-icon.left i {
    left: 15px;
}

.input-with-icon.left input {
    padding-left: 40px;
}

.input-with-icon.right i {
    right: 15px;
    pointer-events: none;
}

/* Pointer events none for date picker icon */
.input-with-icon.right input {
    padding-right: 40px;
}

/* Hide default date indicator for custom look */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}


/* Submit Button */
.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
}

.form-submit {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .file-upload-btn {
        width: 100%;
        justify-content: center;
    }
}