/* ===== Responsive Design ===== */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .booking-form-container,
    .car-details,
    .contact-content,
    .about-section,
    .mission-vision {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .booking-content {
        grid-template-columns: 1fr;
    }
    
    .booking-car {
        flex-direction: column;
        text-align: center;
    }
    
    .booking-car img {
        width: 150px;
        height: 100px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        padding: var(--spacing-xl);
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .nav-links a {
        padding: var(--spacing-md);
        border-radius: var(--border-radius);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: var(--spacing-sm) 0 0 var(--spacing-lg);
        background: transparent;
    }
    
    .dropdown-menu a {
        padding: 0.5rem 0;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-actions {
        grid-template-columns: 1fr;
    }
    
    .method-options {
        grid-template-columns: 1fr;
    }
    
    .status-actions {
        flex-direction: column;
    }
    
    .status-actions .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .cities-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-section {
        padding: var(--spacing-lg) 0;
    }
    
    .auth-card {
        padding: var(--spacing-md);
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .booking-actions {
        flex-direction: column;
    }
    
    .booking-actions .btn {
        width: 100%;
    }
    
    .car-specs {
        grid-template-columns: 1fr;
    }
    
    .car-features ul {
        grid-template-columns: 1fr;
    }
}

/* High resolution displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .hero-section,
    .features-section,
    .filter-section,
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
}/* Dark mode adjustments for responsive */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="light"] {
    color-scheme: light;
    
    /* Light mode overrides */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Responsive adjustments for dark mode */
@media (max-width: 768px) {
    [data-theme="dark"] .navbar {
        background-color: var(--bg-secondary);
    }
    
    [data-theme="dark"] .nav-menu {
        background-color: var(--bg-card);
    }
}