/* ===============================================
   TRAVEL AGENCY APP - RESPONSIVE STYLES
   ===============================================
   All mobile and tablet responsive styles
   organized by screen size and component
   =============================================== */

/* Reset et Styles de Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Images responsive globales */
img {
    max-width: 100%;
    height: auto;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* ===============================================
   HAMBURGER MENU COMPONENT
   =============================================== */

/* Hamburger - Base Styles (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 10px !important;
    padding: 12px !important;
    cursor: pointer !important;
    min-width: 48px !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1006 !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.menu-toggle:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-toggle:focus {
    outline: 2px solid var(--primary-color, #3498db);
    outline-offset: 2px;
}

/* Font Awesome Hamburger Icon */
.menu-toggle i {
    font-size: 1.25rem;
    color: #333;
    transition: all 0.3s ease;
}

/* Active State Animation */
.menu-toggle.active {
    background: var(--primary-color, #3498db) !important;
    border-color: var(--primary-color, #3498db) !important;
    transform: scale(1.05) !important;
}

.menu-toggle.active i {
    color: white !important;
    transform: rotate(90deg) !important;
}

/* Header et Navigation - Base responsive */
.main-header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    position: relative;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
    max-height: 50px;
    width: auto;
}

/* Navigation principale */
.main-nav {
    position: relative;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.main-nav ul li a:hover {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--primary-color, #007aff);
}

/* Menu utilisateur responsive */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    gap: 0.25rem;
}

/* ===============================================
   TABLET STYLES (768px and below)
   =============================================== */
@media (max-width: 768px) {
    /* Header Responsive Layout - ORDER: Menu Left, User Center, Logo Right */
    .main-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem 1.5rem !important;
        gap: 1rem !important;
        flex-wrap: nowrap !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1004 !important;
        background: white !important;
        border-bottom: 1px solid #e9ecef !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        min-height: 70px !important;
        overflow: visible !important;
    }
    
    /* 1. Hamburger Menu - LEFT SIDE (Order 1) */
    .menu-toggle {
        display: flex !important;
        order: 1 !important;
        flex-shrink: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1006 !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 10px !important;
        padding: 12px !important;
        cursor: pointer !important;
        min-width: 48px !important;
        min-height: 48px !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .menu-toggle:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .menu-toggle i {
        font-size: 1.25rem !important; 
        color: #333 !important;
        transition: all 0.3s ease !important;
    }
    
    .menu-toggle.active {
        background: var(--primary-color, #3498db) !important;
        border-color: var(--primary-color, #3498db) !important;
        transform: scale(1.05) !important;
    }
    
    .menu-toggle.active i {
        color: white !important;
        transform: rotate(90deg) !important;
    }
    
    /* 2. User Menu - CENTER (Order 2) */
    .user-menu {
        order: 2 !important;
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.75rem !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(5px) !important;
        border-radius: 12px !important;
        padding: 0.75rem 1rem !important;
        margin: 0 1rem !important;
        min-width: 0 !important;
        max-width: 280px !important;
        position: relative !important;
    }
    
    .user-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        min-width: 100px !important;
        color: #546583 !important;
        flex-shrink: 0 !important;
    }
    
    .user-info span:first-child {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 120px !important;
        line-height: 1.2 !important;
        color: #2c3e50 !important;
    }
    
    .role-badge {
        font-size: 0.7rem !important;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
        color: white !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 4px rgba(40, 167, 69, 0.3) !important;
        padding: 3px 8px !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
    }
    
    /* User Avatar and Notifications */
    .notifications-menu,
    .dropdown {
        flex-shrink: 0 !important;
    }
    
    .user-avatar {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 2px solid #e9ecef !important;
    }
    
    .notification-icon-header {
        position: relative !important;
        cursor: pointer !important;
        padding: 8px !important;
        border-radius: 8px !important;
        transition: background 0.3s ease !important;
    }
    
    .notification-icon-header:hover {
        background: rgba(52, 152, 219, 0.1) !important;
    }
    
    .notification-icon-header i {
        font-size: 1.2rem !important;
        color: #546583 !important;
    }
    
    .notification-count {
        position: absolute !important;
        top: 2px !important;
        right: 2px !important;
        background: #e74c3c !important;
        color: white !important;
        border-radius: 50% !important;
        min-width: 18px !important;
        height: 18px !important;
        font-size: 0.7rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: bold !important;
    }
    
    /* 3. Logo Container - RIGHT SIDE (Order 3) */
    .logo-container {
        order: 3 !important;
        flex-shrink: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    
    .logo {
        max-height: 45px !important;
        max-width: 140px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) !important;
    }
    
    /* Dropdowns - CENTERED ON SCREEN */
    .dropdown-menu,
    .notification-dropdown {
        position: fixed !important;
        left: 50% !important;
        top: 75px !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        min-width: 280px !important;
        max-width: 350px !important; 
        border-radius: 12px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
        backdrop-filter: blur(15px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        z-index: 1010 !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin-top: 0 !important;
        animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    @keyframes dropdownFadeIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    .dropdown-menu a,
    .notification-dropdown a {
        padding: 1rem 1.25rem !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        margin: 0.25rem !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        color: #2c3e50 !important;
        text-decoration: none !important;
    }
    
    .dropdown-menu a:hover,
    .notification-dropdown a:hover {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        color: var(--primary-color, #3498db) !important;
        transform: translateX(4px) !important;
    }
    
    .dropdown-menu a i,
    .notification-dropdown a i {
        width: 16px !important;
        text-align: center !important;
        font-size: 0.9rem !important;
    }
    
    /* Navigation Menu Mobile */
    .main-nav {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border-bottom: 1px solid #e9ecef !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
        z-index: 1003 !important;
        display: none !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        order: 4 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform: translateY(-10px) !important;
        opacity: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 0 0 12px 12px !important;
    }
    
    .main-nav.menu-open {
        display: block !important;
        transform: translateY(0) !important;
        opacity: 1 !important;
        border: 1px solid #e9ecef !important;
        border-top: none !important;
    }
    
    .main-nav ul {
        display: flex !important;
        flex-direction: column !important;
        padding: 1.25rem !important;
        margin: 0 !important;
        list-style: none !important;
        gap: 0.5rem !important;
    }
    
    .main-nav ul li {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .main-nav ul li a {
        display: flex !important;
        padding: 1rem 1.25rem !important;
        text-align: left !important;
        border-radius: 10px !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        color: #333 !important;
        text-decoration: none !important;
        align-items: center !important;
        gap: 0.75rem !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        background: #f8f9fa !important;
        margin-bottom: 0.5rem !important;
    }
    
    .main-nav ul li a:hover {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
        color: var(--primary-color, #3498db) !important;
        transform: translateX(8px) !important;
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2) !important;
    }
    
    .main-nav ul li a.active {
        background: linear-gradient(135deg, var(--primary-color, #3498db) 0%, #2980b9 100%) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3) !important;
        transform: translateX(4px) !important;
    }
    
    .main-nav ul li a i {
        font-size: 1.1rem !important;
        width: 20px !important;
        text-align: center !important;
    }    
    /* Dropdowns Mobile Adjustments - Centered */
    .dropdown-menu,
    .notification-dropdown {
        position: fixed !important;
        left: 50% !important;
        top: 70px !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: auto !important;
        min-width: 280px !important;
        max-width: 350px !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: blur(10px) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        z-index: 1010 !important;
        margin-top: 0.5rem !important;
    }
    
    .dropdown-menu a,
    .notification-dropdown a {
        padding: 1rem 1.25rem !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        margin: 0.25rem !important;
        transition: all 0.3s ease !important;
    }
      .dropdown-menu a:hover,
    .notification-dropdown a:hover {
        background: #f8f9fa !important;
        color: var(--primary-color, #3498db) !important;
        transform: translateX(4px) !important;
    }
    
    /* Container Mobile */
    .container {
        padding: 1rem;
    }
    
    /* Main Content Mobile */
    .main-content {
        padding: 1.5rem 1rem;
    }
}

/* ===============================================
   MOBILE STYLES (480px and below)
   =============================================== */
@media (max-width: 480px) {
    /* Header Ultra-Compact - SAME ORDER: Menu Left, User Center, Logo Right */
    .main-header {
        padding: 0.75rem 1rem !important;
        min-height: 60px !important;
        gap: 0.75rem !important;
    }
    
    /* 1. Menu Toggle - LEFT (Smaller) */
    .menu-toggle {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 10px !important;
    }
    
    .menu-toggle i {
        font-size: 1.1rem !important;
    }
    
    /* 2. User Menu - CENTER (Smaller) */
    .user-menu {
        max-width: 180px !important;
        padding: 0.5rem 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .user-info span:first-child {
        font-size: 0.8rem !important;
        max-width: 90px !important;
    }
    
    .role-badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    
    .user-avatar {
        width: 40px !important;
        height: 40px !important;
    }
    
    .notification-icon-header i {
        font-size: 1.1rem !important;
    }
    
    .notification-count {
        min-width: 16px !important;
        height: 16px !important;
        font-size: 0.65rem !important;
    }
    
    /* 3. Logo - RIGHT (Mobile Optimized) */
    .logo {
        max-height: 35px !important;
        max-width: 100px !important;
    }
    
    /* Dropdowns Mobile - Centered */
    .dropdown-menu,
    .notification-dropdown {
        position: fixed !important;
        left: 50% !important;
        top: 65px !important;
        transform: translateX(-50%) !important;
        min-width: 260px !important;
        max-width: 300px !important;
        border-radius: 10px !important;
    }
    
    .dropdown-menu a,
    .notification-dropdown a {
        padding: 0.875rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Navigation Mobile Optimized */
    .main-nav ul {
        padding: 1rem;
    }
    
    .main-nav ul li a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }
    
    .main-nav ul li a i {
        font-size: 1rem;
    }
    
    /* User Menu Compact */
    .user-menu {
        gap: 0.5rem;
        padding: 0.375rem;
    }
    
    .user-info {
        font-size: 0.75rem;
    }
    
    .role-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* User Avatar Mobile */
    .user-avatar {
        width: 32px;
        height: 32px;
    }
      /* Dropdowns Mobile - Centered */
    .dropdown-menu,
    .notification-dropdown {
        position: fixed !important;
        left: 50% !important;
        top: 60px !important;
        transform: translateX(-50%) !important;
        min-width: 260px !important;
        max-width: 300px !important;
        border-radius: 10px !important;
    }
    
    .dropdown-menu a,
    .notification-dropdown a {
        padding: 0.875rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Container Mobile */
    .container {
        padding: 0.75rem;
    }
    
    /* Main Content Mobile */
    .main-content {
        padding: 1rem 0.75rem;
    }
    
    /* Cards Mobile */
    .card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .card h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;    }
    
    /* Buttons Mobile - now in shared/buttons.css */
    
    /* Forms Mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Tables Mobile */
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* ===============================================
   EXTRA SMALL MOBILE (320px and below)
   =============================================== */
@media (max-width: 320px) {
    /* Header Extra Compact - SAME ORDER: Menu Left, User Center, Logo Right */
    .main-header {
        padding: 0.5rem 0.75rem !important;
        min-height: 55px !important;
        gap: 0.5rem !important;
    }
    
    /* 1. Menu Toggle - LEFT (Extra Small) */
    .menu-toggle {
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 8px !important;
    }
    
    .menu-toggle i {
        font-size: 1rem !important;
    }
    
    /* 2. User Menu - CENTER (Extra Small) */
    .user-menu {
        max-width: 140px !important;
        padding: 0.375rem 0.5rem !important;
        gap: 0.375rem !important;
    }
    
    .user-info span:first-child {
        font-size: 0.75rem !important;
        max-width: 70px !important;
    }
    
    .role-badge {
        font-size: 0.6rem !important;
        padding: 1px 4px !important;
    }
    
    .user-avatar {
        width: 28px !important;
        height: 28px !important;
    }
    
    .notification-icon-header {
        padding: 6px !important;
    }
    
    .notification-icon-header i {
        font-size: 1rem !important;
    }
    
    .notification-count {
        min-width: 14px !important;
        height: 14px !important;
        font-size: 0.6rem !important;
    }
    
    /* 3. Logo - RIGHT (Extra Small) */
    .logo {
        max-height: 30px !important;
        max-width: 80px !important;
    }
    
    /* Dropdowns - Extra Small Mobile - Centered */
    .dropdown-menu,
    .notification-dropdown {
        position: fixed !important;
        left: 50% !important;
        top: 60px !important;
        transform: translateX(-50%) !important;
        min-width: 240px !important;
        max-width: 280px !important;
        border-radius: 8px !important;
    }
    
    .dropdown-menu a,
    .notification-dropdown a {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.9rem !important;
        gap: 0.5rem !important;
    }
    
    /* Navigation Extra Small */
    .main-nav ul {
        padding: 0.75rem;
    }
    
    .main-nav ul li a {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    /* User Menu Extra Small */
    .user-menu {
        padding: 0.25rem;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    /* Container Extra Small */
    .container {
        padding: 0.5rem;
    }
    
    .main-content {
        padding: 0.75rem 0.5rem;
    }
    
    /* Cards Extra Small */
    .card {
        padding: 0.75rem;
    }
    
    .card h2 {
        font-size: 1.1rem;    }
    
    /* Buttons Extra Small - now in shared/buttons.css */
}

/* Force hamburger visibility on mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1006 !important;
    }
    
    /* Ensure hamburger stays visible when menu is open */
    .main-nav.menu-open + .menu-toggle,
    .menu-toggle.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ===============================================
   ANIMATIONS AND EFFECTS
   =============================================== */

/* Smooth Menu Transitions */
.main-nav,
.menu-toggle,
.menu-toggle i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay for Mobile Menu */
@media (max-width: 768px) {
    .main-nav.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        opacity: 0;
        animation: fadeIn 0.3s ease forwards;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Pulse Effect for Hamburger */
.menu-toggle:not(.active):hover i {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Focus States for Accessibility */
.menu-toggle:focus i {
    color: var(--primary-color, #3498db);
    text-shadow: 0 0 0 1px rgba(52, 152, 219, 0.3);
}

/* ===============================================
   ACCESSIBILITY & MODERN FEATURES
   =============================================== */

/* Prevent Text Selection on Interactive Elements */
.menu-toggle {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading State Prevention */
.menu-toggle:disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .menu-toggle i {
        color: #000;
        text-shadow: 0 0 1px #fff;
    }
    
    .menu-toggle.active i {
        color: #fff;
        text-shadow: 0 0 1px #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .main-nav {
        background: #1a1a1a;
        color: white;
    }
    
    .main-nav ul li a {
        color: white;
        background: #2a2a2a;
    }
    
    .main-nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .menu-toggle i {
        color: white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .menu-toggle,
    .main-nav,
    .menu-toggle i {
        transition: none;
    }
    
    .menu-toggle:not(.active):hover i {
        animation: none;
    }
}

/* ===============================================
   UTILITY CLASSES FOR RESPONSIVE DESIGN
   =============================================== */

/* Hide elements on different screen sizes */
.hide-mobile {
    display: block;
}

.hide-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .hide-desktop {
        display: block;
    }
}

/* Responsive text sizes */
.text-responsive {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .text-responsive {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .text-responsive {
        font-size: 0.85rem;
    }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
    .menu-toggle {
        min-width: 48px;
        min-height: 48px;
    }
    
    .main-nav ul li a {
        min-height: 48px;
    }
}

/* ===============================================
   GENERAL RESPONSIVE ADJUSTMENTS
   =============================================== */

@media (max-width: 768px) {
    /* General Typography */
    h1, .h1 { font-size: 1.8rem; }
    h2, .h2 { font-size: 1.6rem; }
    h3, .h3 { font-size: 1.4rem; }
    h4, .h4 { font-size: 1.2rem; }

    /* General Layout */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* General Forms */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

@media (max-width: 576px) {
    /* General Typography */
    h1, .h1 { font-size: 1.6rem; }
    h2, .h2 { font-size: 1.4rem; }
    h3, .h3 { font-size: 1.2rem; }
    h4, .h4 { font-size: 1.1rem; }    /* General Buttons - now in shared/buttons.css */
}

/* ===============================================
   MEDIUM SCREENS STYLES (1024px and below)
   =============================================== */
@media (max-width: 1024px) {
    /* Navigation للشاشات المتوسطة */
    .main-nav ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1rem !important;
    }
    
    .main-nav ul li a {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
    }
    
    /* تقليل المسافات في الهيدر */
    .main-header {
        padding: 0.8rem 1.5rem !important;
        gap: 1.5rem !important;
    }
    
    /* ضبط حجم اللوجو */
    .logo {
        max-height: 45px !important;
    }
}

/* ===============================================
   SMALL DESKTOP/LARGE TABLET (900px and below)
   =============================================== */
@media (max-width: 900px) {
    .main-nav ul {
        gap: 0.75rem !important;
    }
    
    .main-nav ul li a {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.85rem !important;
    }
    
    .main-header {
        gap: 1rem !important;
    }
}
