/* ============================================
   DASHBOARD.CSS - RESTORED ORIGINAL LOOK
   WITH FIXED SIDEBAR HEADER & FOOTER
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR - FIXED HEADER & FOOTER, NAV SCROLLS
   ============================================ */

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0a2c4a 0%, #0d3b5e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow: hidden; /* Prevent sidebar from scrolling as a whole */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

/* Sidebar Close Button - Visible only on mobile */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    z-index: 10;
}

.sidebar-close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* ============================================
   SIDEBAR HEADER - FIXED (DOES NOT SCROLL)
   ============================================ */

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    flex-shrink: 0; /* Prevents header from shrinking */
    background: linear-gradient(180deg, #0a2c4a 0%, #0d3b5e 100%);
    z-index: 2;
}

.sidebar-header img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    margin-bottom: 10px;
    object-fit: contain;
}

.sidebar-header h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.sidebar-header .version {
    font-size: 11px;
    opacity: 0.6;
}

/* ============================================
   SIDEBAR NAV - SCROLLS (ONLY NAV ITEMS)
   ============================================ */

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto; /* Only the nav scrolls */
    overflow-x: hidden;
}

/* Custom scrollbar for sidebar nav */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
    transition: all 0.3s;
    text-align: center;
}

.nav-item span {
    flex: 1;
    font-size: 14px;
}

.nav-item .badge {
    background: #589bdd;
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
    border-left-color: #589bdd;
}

.nav-item:hover i {
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(88, 155, 221, 0.25);
    color: white;
    border-left-color: #589bdd;
}

.nav-item.active i {
    color: #589bdd;
}

/* Sidebar overlay - for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block !important;
    opacity: 1;
}

/* ============================================
   SIDEBAR FOOTER - FIXED (DOES NOT SCROLL)
   ============================================ */

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0; /* Prevents footer from shrinking */
    background: linear-gradient(180deg, #0d3b5e 0%, #0a2c4a 100%);
    z-index: 2;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: all 0.3s;
}

.user-info:hover {
    background: rgba(255,255,255,0.15);
}

.user-info i {
    font-size: 32px;
    color: #589bdd;
}

.user-info div {
    display: flex;
    flex-direction: column;
}

.user-info span {
    font-weight: 600;
    font-size: 14px;
}

.user-info small {
    font-size: 11px;
    opacity: 0.7;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220,38,38,0.3);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header {
    background: white;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 99;
    min-height: 70px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #0a2c4a;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.menu-toggle i {
    font-size: 26px;
}

.header-title {
    flex: 1;
    margin-left: 16px;
}

.header-title h1 {
    font-size: 24px;
    color: #0a2c4a;
    margin-bottom: 4px;
    font-weight: 700;
}

.header-title p {
    font-size: 14px;
    color: #666;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-time {
    font-size: 14px;
    color: #666;
    background: #f8f9fc;
    padding: 6px 14px;
    border-radius: 30px;
    white-space: nowrap;
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

/* ============================================
   STATS CARDS - RESPONSIVE
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #589bdd;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #e8f0fe;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 28px;
    color: #589bdd;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 800;
    color: #0a2c4a;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 14px;
    color: #6c757d;
}

/* ============================================
   TABLES - RESPONSIVE
   ============================================ */

.data-table {
    background: white;
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    padding: 0;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.table-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0a2c4a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-header h3 i {
    color: #589bdd;
}

.view-all-link {
    color: #589bdd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-all-link:hover {
    color: #3a7bb5;
    transform: translateX(3px);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.data-table th {
    text-align: left;
    padding: 14px 20px;
    background: #f8f9fc;
    font-weight: 600;
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8e8e8;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #0a2c4a;
    vertical-align: middle;
}

.data-table tr:hover {
    background: #f8f9fc;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   STATUS BADGES
   ============================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge i {
    font-size: 11px;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-in_transit,
.status-in-progress {
    background: #dbeafe;
    color: #2563eb;
}

.status-delivered,
.status-completed {
    background: #d1fae5;
    color: #059669;
}

.status-delayed {
    background: #fee2e2;
    color: #dc2626;
}

.status-available {
    background: #d1fae5;
    color: #059669;
}

.status-in_use {
    background: #dbeafe;
    color: #2563eb;
}

.status-maintenance {
    background: #fed7aa;
    color: #ea580c;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: #589bdd;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #3a7bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88,155,221,0.3);
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220,38,38,0.3);
}

/* ============================================
   FILTER BUTTONS
   ============================================ */

.filter-btn {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-btn.active {
    background: #589bdd;
    color: white;
    border-color: #589bdd;
    box-shadow: 0 2px 8px rgba(88,155,221,0.2);
}

.filter-btn:hover:not(.active) {
    background: #f0f0f0;
    border-color: #589bdd;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 4px;
    transition: all 0.3s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.view-btn {
    background: #e8f0fe;
    color: #589bdd;
}

.view-btn:hover {
    background: #589bdd;
    color: white;
}

.edit-btn {
    background: #fef3c7;
    color: #d97706;
}

.edit-btn:hover {
    background: #d97706;
    color: white;
}

.delete-btn {
    background: #fee2e2;
    color: #dc2626;
}

.delete-btn:hover {
    background: #dc2626;
    color: white;
}

.track-btn {
    background: #d1fae5;
    color: #059669;
}

.track-btn:hover {
    background: #059669;
    color: white;
}

/* ============================================
   MODAL - COMPLETE RESPONSIVE
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
    border-radius: 24px 24px 0 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0a2c4a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0a2c4a;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #589bdd;
    box-shadow: 0 0 0 3px rgba(88,155,221,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ============================================
   SELECT DROPDOWN
   ============================================ */

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23589bdd' 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 12px center;
    background-size: 16px;
    padding-right: 36px;
}

select:focus {
    outline: none;
    border-color: #589bdd;
    box-shadow: 0 0 0 3px rgba(88, 155, 221, 0.1);
}

select option:disabled {
    color: #999;
    background: #f5f5f5;
}

/* ============================================
   TRACKING PAGE
   ============================================ */

.tracking-search {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.tracking-input {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.tracking-input input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.tracking-input input:focus {
    outline: none;
    border-color: #589bdd;
    box-shadow: 0 0 0 3px rgba(88,155,221,0.1);
}

.tracking-info {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* ============================================
   STATUS SELECT
   ============================================ */

.status-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.status-select:focus {
    outline: none;
    border-color: #589bdd;
    box-shadow: 0 0 0 3px rgba(88,155,221,0.1);
}

/* ============================================
   BADGE STYLING
   ============================================ */

.badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
}

/* ============================================
   CLIENT AVATAR
   ============================================ */

.client-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e8f0fe, #d4e4f5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #589bdd;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ===== TABLET AND BELOW ===== */
@media (max-width: 1024px) {
    .modal-content {
        max-width: 96%;
        margin: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    /* ===== SIDEBAR - Slides in from left ===== */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: none;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0,0,0,0.2);
    }
    
    /* Show close button on mobile */
    .sidebar-close-btn {
        display: block !important;
    }
    
    /* Show overlay on mobile when sidebar is open */
    .sidebar-overlay.active {
        display: block !important;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    /* ===== HEADER ===== */
    .main-header {
        padding: 12px 16px;
        min-height: 60px;
    }
    
    .header-title {
        margin-left: 10px;
    }
    
    .header-title h1 {
        font-size: 18px;
    }
    
    .header-title p {
        font-size: 12px;
        display: none;
    }
    
    .date-time {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    /* ===== PAGE CONTENT ===== */
    .page-content {
        padding: 16px;
    }
    
    /* ===== STATS GRID ===== */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 14px 16px;
        border-radius: 16px;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 20px;
    }
    
    .stat-info p {
        font-size: 12px;
    }
    
    /* ===== TABLES ===== */
    .data-table {
        border-radius: 14px;
        padding: 0;
    }
    
    .table-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-header h3 {
        font-size: 16px;
    }
    
    .data-table table {
        min-width: 500px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .data-table th {
        font-size: 11px;
    }
    
    /* ===== MODAL ===== */
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
        margin: 0;
    }
    
    .modal-header {
        padding: 14px 16px;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 16px;
        max-height: calc(95vh - 70px);
    }
    
    .modal-close {
        font-size: 20px;
    }
    
    /* ===== FILTER BUTTONS ===== */
    .filter-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    /* ===== ACTION BUTTONS ===== */
    .action-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
        margin: 0 2px;
    }
    
    /* ===== FORM ===== */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* ===== TRACKING ===== */
    .tracking-input {
        flex-direction: column;
    }
    
    .tracking-search {
        padding: 20px;
    }
}

/* ===== MOBILE SMALL ===== */
@media (max-width: 480px) {
    /* ===== SIDEBAR ===== */
    .sidebar {
        width: 280px;
    }
    
    .sidebar-header {
        padding: 20px 16px;
    }
    
    .sidebar-header img {
        width: 56px;
        height: 56px;
    }
    
    .sidebar-header h3 {
        font-size: 16px;
    }
    
    .nav-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .nav-item i {
        font-size: 16px;
        width: 20px;
        margin-right: 10px;
    }
    
    /* ===== HEADER ===== */
    .main-header {
        padding: 10px 12px;
    }
    
    .header-title h1 {
        font-size: 16px;
    }
    
    .date-time {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .menu-toggle {
        font-size: 20px;
        padding: 6px;
    }
    
    /* ===== PAGE CONTENT ===== */
    .page-content {
        padding: 10px;
    }
    
    /* ===== STATS GRID ===== */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px 14px;
        border-radius: 14px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .stat-icon i {
        font-size: 18px;
    }
    
    .stat-info h3 {
        font-size: 18px;
    }
    
    .stat-info p {
        font-size: 11px;
    }
    
    /* ===== TABLES ===== */
    .data-table {
        border-radius: 12px;
    }
    
    .table-header {
        padding: 10px 12px;
    }
    
    .table-header h3 {
        font-size: 14px;
    }
    
    .data-table table {
        min-width: 400px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .data-table th {
        font-size: 10px;
    }
    
    /* ===== MODAL ===== */
    .modal {
        padding: 6px;
        padding-top: 10px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 10px 12px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .modal-close {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    /* ===== BUTTONS ===== */
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .filter-btn {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    /* ===== ACTION BUTTONS ===== */
    .action-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
        margin: 0 1px;
        border-radius: 6px;
    }
    
    /* ===== FORM ===== */
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 10px;
    }
    
    /* ===== STATUS BADGE ===== */
    .status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* ===== WELCOME SECTION ===== */
    .welcome-content h2 {
        font-size: 18px !important;
    }
    
    .welcome-stats {
        gap: 8px !important;
    }
    
    .welcome-stat-item {
        padding: 4px 8px !important;
    }
    
    .welcome-stat-item span {
        font-size: 14px !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .sidebar,
    .sidebar-overlay,
    .menu-toggle,
    .sidebar-close-btn,
    .header-actions,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .main-header {
        position: static !important;
    }
    
    .page-content {
        padding: 20px !important;
    }
    
    .data-table {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .data-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .modal {
        display: none !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

.w-100 { width: 100%; }

/* ============================================
   FIX: Mobile scroll for sidebar
   ============================================ */

@media (max-width: 768px) {
    body.sidebar-open {
        overflow: hidden;
    }
}