* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(180deg, #87ceeb 0%, #e0f6ff 25%, #ffffff 50%, #e0f6ff 75%, #87ceeb 100%);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: none;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ============ TOP NAVIGATION ============ */
.top-nav {
    background: linear-gradient(135deg, #405d73 0%, #2d4a63 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 3000;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
}

.logo-text p {
    font-size: 0.85rem;
    color: #b3c9ff;
    margin: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.logout-top-btn {
    border: none;
    background: #e74c3c;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.logout-top-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.greeting {
    text-align: right;
}

.greeting p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.greeting small {
    display: block;
    font-size: 0.8rem;
    color: #b3c9ff;
}

.logout-btn {
    background: #ff6b6b;
    border: none;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

/* ============ MAIN CONTAINER ============ */
.container {
    display: flex;
    height: calc(100vh - 80px);
    overflow: hidden;
}

/* ============ SIDEBAR ============ */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #405d73 0%, #2d4a63 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100%;
}

.sidebar::before {
    content: none;
}

.sidebar * {
    position: relative;
    z-index: 1;
}

.menu {
    list-style: none;
}

.menu-item {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.menu-item i {
    font-size: 1.1rem;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #81d4fa;
    padding-left: 24px;
    color: #81d4fa;
}

.menu-item.active {
    background: rgba(129, 212, 250, 0.2);
    border-left-color: #81d4fa;
    color: #81d4fa;
}

.menu-item.active i,
.menu-item:hover i {
    color: #81d4fa;
}

.logout-item {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ff6b6b;
}

.logout-item:hover {
    background: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
}

/* ============ MAIN CONTENT ============ */
.content {
    position: relative;
    flex: 1;
    padding: 30px;
    background: transparent;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-value {
    margin: 4px 0 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.search-input,
.filter-select {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.95rem;
    min-width: 200px;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.filter-btn {
    background: #4d9de0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
    background: #3c82d6;
    transform: translateY(-1px);
}

.trips-table-container {
    margin-top: 18px;
    background: white;
    border-radius: 14px;
    overflow: auto;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    max-height: calc(100vh - 330px);
}

.trips-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: white;
    table-layout: auto;
}

.trips-table th,
.trips-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e8eaf6;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trips-table th {
    background: linear-gradient(135deg, #1f4037 0%, #132c1a 100%);
    color: white;
    font-weight: 600;
    font-size: 0.92rem;
}

.trips-table tbody tr:hover {
    background: #f8fafc;
}

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

.trips-table td:last-child {
    min-width: 160px;
}

/* column width hints for dashboard layout (Booking Code, Passenger, Route, Date, Time, Status, Actions) */
.trips-table th:nth-child(1),
.trips-table td:nth-child(1) {
    width: 150px; /* Booking code */
}
.trips-table th:nth-child(2),
.trips-table td:nth-child(2) {
    width: 160px; /* Passenger */
}
.trips-table th:nth-child(3),
.trips-table td:nth-child(3) {
    /* Route column: truncate with ellipsis to keep table compact */
    width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trips-table th:nth-child(4),
.trips-table td:nth-child(4) {
    width: 120px; /* Date */
}
.trips-table th:nth-child(5),
.trips-table td:nth-child(5) {
    width: 100px; /* Time */
}
.trips-table th:nth-child(6),
.trips-table td:nth-child(6) {
    width: 120px; /* Status */
}
.trips-table th:nth-child(7),
.trips-table td:nth-child(7) {
    width: 180px; /* Actions */
}

/* Right align actions and ensure buttons fit */
.trips-table td.table-actions-cell {
    text-align: right;
    white-space: nowrap;
}

/* Make booking code visually compact */
.trips-table td span[style*="monospace"] {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1120px) {
    .stats-cards {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 760px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
    }

    .menu {
        display: flex;
        width: 100%;
        overflow-x: auto;
    }

    .menu-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .content {
        padding: 20px;
        min-height: auto;
        height: auto;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .trips-table {
        min-width: 100%;
    }
}

/* Table container scrolling for large datasets */
.table-container,
.trips-table-container,
.management-table-container {
    max-height: calc(100vh - 320px);
    overflow: auto;
    padding-bottom: 10px;
}

.management-table,
.trips-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

/* Pagination (Next / Previous) styling */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.prev-btn, .next-btn, .page-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prev-btn:hover, .next-btn:hover, .page-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.page-info { color: #666; font-weight: 600; }

/* status badges used across pages */
.status-badge.cancelled, .status-badge.rejected { background: #ffebee; color: #c62828; }
.status-badge.pending { background: #fff3e0; color: #ef6c00; }
.status-badge.approved { background: #e3f2fd; color: #1565c0; }

/* generic badges used in driver pages */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.badge.completed { background-color: #e8f5e9; color: #2e7d32; }
.badge.cancelled { background-color: #ffebee; color: #c62828; }
.badge.scheduled { background-color: #fff8e1; color: #f57c00; }
.badge.active { background-color: #e8f5e9; color: #2e7d32; }
.badge.upcoming { background-color: #fff3e0; color: #f57c00; }
.badge.pending { background-color: #e3f2fd; color: #1565c0; }

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"] {
    display: flex;
}

.modal {
    background: white;
    width: min(700px, calc(100vw - 40px));
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Wider layout for data-heavy dialogs such as the driver's trip manifest. */
.modal.modal-wide {
    width: min(1100px, calc(100vw - 40px));
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #405d73, #2d4a63);
    color: #fff;
}

.modal-header h3 {
    margin: 0;
    font-size: 1rem;
}

.modal-body {
    padding: 18px;
    color: #333;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    justify-content: flex-end;
    background: #fafafa;
}

.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.action-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    background: linear-gradient(135deg, #405d73, #2d4a63);
    color: white;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.action-btn.view-btn,
.action-btn.start-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    font-size: 0;
}

.action-btn.view-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.action-btn.view-btn:hover {
    background: linear-gradient(135deg, #27ae60, #219a52);
}

.action-btn.start-btn {
    background: linear-gradient(135deg, #3498db, #2c7ac9);
    color: white;
}

.action-btn.start-btn:hover {
    background: linear-gradient(135deg, #2c7ac9, #2468b2);
}

.action-btn.view-btn i,
.action-btn.start-btn i {
    font-size: 0.95rem;
}

.action-btn.complete-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.secondary-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    background: #f3f4f6;
    color: #111827;
}

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

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.table-action-btn {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.table-action-btn.check-btn,
.table-action-btn.view-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.table-action-btn.complete-btn,
.table-action-btn.start-btn {
    background: linear-gradient(135deg, #3498db 0%, #2d78c1 100%);
    color: white;
}

.table-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.trips-table td.table-actions-cell {
    min-width: 180px;
}

/* toast notification used by pages */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.toast-notification.show { transform: translateX(0); }
.toast-notification.success { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.toast-notification.error { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); }
.toast-notification.info { background: linear-gradient(135deg, #3498db 0%, #3b82f6 100%); }

.content::before {
    content: none;
}

.content > * {
    position: relative;
    z-index: 1;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 2rem;
    color: #3f51b5;
    margin-bottom: 5px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #3f51b5;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #5e35b1;
}

.section-header p {
    color: #666;
    font-size: 0.95rem;
}

/* ============ WELCOME SECTION ============ */
.welcome-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.welcome-content {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.welcome-content h1 {
    font-size: 2rem;
    color: #3f51b5;
    margin-bottom: 15px;
    font-weight: 700;
}

.welcome-content p {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(135deg, #5e35b1 0%, #3f51b5 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 16px rgba(94, 53, 177, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(94, 53, 177, 0.4);
}

/* ============ BOOKING TIP CARD ============ */
.booking-tip-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e8eaf6;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tip-header i {
    font-size: 1.8rem;
    color: #ffc107;
}

.tip-header h3 {
    font-size: 1.1rem;
    color: #3f51b5;
    margin: 0;
}

.booking-tip-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.tip-image {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}


/* ============ TABLES ============ */
.trips-table, .management-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.trips-table th,
.trips-table td,
.management-table th,
.management-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e8eaf6;
    border-right: 1px solid #e8eaf6;
}

.trips-table th,
.management-table th {
    background: linear-gradient(135deg, #5e35b1 0%, #3f51b5 100%);
    color: white;
    font-weight: 700;
    border-bottom: 2px solid rgba(63,81,181,0.9);
}

.trips-table tr:last-child td,
.management-table tr:last-child td {
    border-bottom: none;
}

.trips-table tr:hover,
.management-table tr:hover {
    background-color: #f1f8f3;
}

.trips-table-container,
.management-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e8eaf6;
}

.page-btn, .prev-btn, .next-btn {
    background: linear-gradient(135deg, #5e35b1 0%, #3f51b5 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover, .prev-btn:hover, .next-btn:hover {
    background: #3f51b5;
    transform: translateY(-2px);
}

.page-info {
    color: #666;
    font-weight: 600;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .welcome-section {
        grid-template-columns: 1fr;
    }

    .reservations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .card-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
    }

    .menu {
        display: flex;
        width: 100%;
        overflow-x: auto;
    }

    .menu-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .content {
        padding: 15px;
    }

    .welcome-content {
        padding: 20px;
    }

    .welcome-content h1 {
        font-size: 1.5rem;
    }

    .reservations-grid {
        grid-template-columns: 1fr;
    }

    .card-details {
        grid-template-columns: 1fr;
    }

    .card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .view-details-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text p {
        display: none;
    }

    .section-header h1 {
        font-size: 1.5rem;
    }

    .welcome-content h1 {
        font-size: 1.3rem;
    }

    .welcome-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .route-info {
        flex-direction: column;
        gap: 10px;
    }

    .route-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
}

/* Mobile off-canvas navigation shared by passenger and driver pages. */
.mobile-menu-toggle,
.mobile-menu-overlay {
    display: none;
}

@media (max-width: 1024px) {
    body.mobile-nav-open {
        overflow: hidden;
    }

    /* Driver/passenger data tables must remain horizontally swipeable on phones. */
    .trips-table-container,
    .management-table-container,
    .table-container {
        display: block;
        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
        min-width: 0;
        overflow-x: scroll;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
    }

    .content,
    .content .section,
    .content .upcoming-trips {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .trips-table-container .trips-table,
    .management-table-container .management-table,
    .table-container table {
        width: 760px;
        min-width: 760px;
    }

    .top-nav {
        padding: 10px 14px;
        min-height: 68px;
        gap: 8px;
    }

    .top-nav .logo {
        gap: 8px;
    }

    .top-nav .logo img {
        width: 42px;
        height: 42px;
    }

    .top-nav .logo-text h2 {
        font-size: 1.15rem;
    }

    .top-nav .nav-right {
        margin-left: auto;
        gap: 8px;
        min-width: 0;
    }

    .top-nav .user-info .greeting,
    .top-nav .user-info .logout-top-btn {
        display: none;
    }

    .top-nav .user-info {
        gap: 0;
    }

    .top-nav .avatar {
        width: 38px;
        height: 38px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 1.25rem;
        cursor: pointer;
        z-index: 3201;
    }

    .container {
        display: block;
        height: auto;
        min-height: calc(100vh - 68px);
        overflow: visible;
    }

    .sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(82vw, 300px);
        height: 100dvh;
        padding: 82px 0 20px;
        z-index: 3200;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.28);
    }

    .sidebar.mobile-menu-open {
        transform: translateX(0);
    }

    .sidebar .menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        overflow: visible;
    }

    .sidebar .menu-item {
        width: 100%;
        min-height: 52px;
        flex-shrink: 0;
        border-left: 4px solid transparent;
        border-bottom: 0;
    }

    .sidebar .menu-item.active {
        border-left-color: #87ceeb;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(15, 23, 42, 0.55);
        z-index: 3190;
        cursor: pointer;
    }

    .mobile-menu-overlay.mobile-menu-open {
        display: block;
    }

    .content {
        width: 100%;
        min-width: 0;
    }
}
