*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* LOGIN */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 40%, #1E88E5 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-screen::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -200px;
    right: -200px;
}
.login-screen::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -100px;
    left: -100px;
}
.login-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease;
}
.login-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    margin-bottom: 8px;
}
.login-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--surface);
    color: var(--text);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 100px; resize: vertical; }
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.85rem;
}
.login-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
}
.login-options a { color: var(--primary); font-weight: 500; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(21,101,192,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(21,101,192,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { background: var(--surface-hover); border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(21,101,192,0.3);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(21,101,192,0.4); }

/* APP LAYOUT */
.app-container { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.sidebar-brand { padding: 24px 20px; border-bottom: 1px solid var(--border); }
.sidebar-brand h2 { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.sidebar-brand span { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 2px; }
.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin: 2px 12px; }
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.sidebar-nav li a:hover { background: var(--surface-hover); color: var(--primary); }
.sidebar-nav li a.active { background: rgba(21,101,192,0.08); color: var(--primary); font-weight: 600; }
.sidebar-nav li a .nav-icon { width: 20px; text-align: center; font-size: 1.1rem; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }

/* TOPBAR */
.topbar {
    height: var(--topbar-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 50;
}
.topbar h1 { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-actions .user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--surface-hover);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.topbar-actions .user-badge .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

/* MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 28px;
    min-height: calc(100vh - var(--topbar-height));
    background: var(--bg);
}

/* CARDS */
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

/* STAT CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-card .stat-icon.blue { background: #EFF6FF; color: #2563EB; }
.stat-card .stat-icon.green { background: #ECFDF5; color: #059669; }
.stat-card .stat-icon.orange { background: #FFF7ED; color: #D97706; }
.stat-card .stat-icon.red { background: #FEF2F2; color: #DC2626; }
.stat-card .stat-icon.purple { background: #F5F3FF; color: #7C3AED; }
.stat-card .stat-icon.teal { background: #F0FDFA; color: #0D9488; }
.stat-card .stat-icon.indigo { background: #EEF2FF; color: #4F46E5; }
.stat-card .stat-icon.pink { background: #FDF2F8; color: #DB2777; }
.stat-card .stat-info h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.stat-card .stat-info .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat-card .stat-info .stat-change { font-size: 0.78rem; margin-top: 2px; }
.stat-card .stat-info .stat-change.up { color: var(--success); }
.stat-card .stat-info .stat-change.down { color: var(--danger); }

/* CHARTS */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.chart-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
}
.chart-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.chart-container { position: relative; height: 280px; width: 100%; }

/* TABLE */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
    background: var(--surface-hover);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
tbody tr:hover { background: var(--surface-hover); }
tbody tr:last-child td { border-bottom: none; }

/* BADGES */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.badge-new { background: #DBEAFE; color: #1E40AF; }
.badge-hot { background: #FEF3C7; color: #92400E; }
.badge-warm { background: #FFF7ED; color: #9A3412; }
.badge-cold { background: #F0F9FF; color: #075985; }
.badge-confirmed { background: #ECFDF5; color: #065F46; }
.badge-lost { background: #FEF2F2; color: #991B1B; }
.badge-pending { background: #FFF7ED; color: #92400E; }
.badge-sent { background: #EFF6FF; color: #1E40AF; }
.badge-active { background: #ECFDF5; color: #065F46; }
.badge-inactive { background: #F3F4F6; color: #6B7280; }

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}
.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    line-height: 1;
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* TOAST */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    z-index: 2000;
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    box-shadow: var(--shadow-lg);
}
.toast-success { background: var(--success); }
.toast-danger { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--info); }
@keyframes fadeOut { to { opacity: 0; transform: translateY(10px); } }

/* FILTER BAR */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-bar .form-control { max-width: 220px; padding: 8px 14px; font-size: 0.85rem; }

/* ACTIVITY LIST */
.activity-list { list-style: none; }
.activity-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.activity-dot.blue { background: var(--primary); }
.activity-dot.green { background: var(--success); }
.activity-dot.orange { background: var(--warning); }
.activity-content p { font-size: 0.9rem; color: var(--text); }
.activity-content span { font-size: 0.78rem; color: var(--text-muted); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* SETTINGS TABS */
.settings-tab {
    background: var(--surface);
    color: var(--text-secondary);
    border: none;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.settings-tab:hover {
    background: var(--surface-hover);
    color: var(--primary);
}
.settings-tab.active {
    background: var(--primary);
    color: #fff;
}
#rolesMatrix input[type="checkbox"] {
    accent-color: var(--primary);
}

/* BOOKING DETAIL TABS */
.booking-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}
.booking-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    font-family: var(--font);
}
.booking-tab:hover { color: var(--primary); }
.booking-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* PROFIT INDICATORS */
.profit-positive { color: var(--success); font-weight: 700; }
.profit-negative { color: var(--danger); font-weight: 700; }
.profit-bar {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.profit-bar-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
}
.profit-bar-item .label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.profit-bar-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

/* NOTIFICATION BELL */
.notif-wrapper { position: relative; }
.notif-bell {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    position: relative;
}
.notif-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
}
.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 200;
    display: none;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    transition: var(--transition);
}
.notif-item:hover { background: var(--surface-hover); }
.notif-item.unread { background: var(--info-bg); }
.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.notif-icon.warn { background: var(--warning-bg); }
.notif-icon.danger { background: var(--danger-bg); }
.notif-icon.info { background: var(--info-bg); }
.notif-text p { margin-bottom: 2px; }
.notif-text span { font-size: 0.75rem; color: var(--text-muted); }

/* PAYMENT STATUS */
.pay-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}
.pay-status.full { background: #ECFDF5; color: #065F46; }
.pay-status.partial { background: #FFF7ED; color: #92400E; }
.pay-status.pending-pay { background: #FEF2F2; color: #991B1B; }

/* TCS TOGGLE */
.tcs-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--info-bg);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.tcs-toggle label { font-weight: 600; color: var(--info); }

/* INTERNAL COST ITEMS */
.cost-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
    align-items: end;
}

/* FINANCE SUMMARY CARD */
.finance-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.finance-summary-block {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
}
.finance-summary-block h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.fin-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.88rem;
}
.fin-row .fin-label { color: var(--text-secondary); }
.fin-row .fin-value { font-weight: 600; }
.fin-row.total {
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ALERT CARDS */
.alert-card {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.alert-card.warn { background: var(--warning-bg); border-left: 4px solid var(--warning); }
.alert-card.danger { background: var(--danger-bg); border-left: 4px solid var(--danger); }
.alert-card.info { background: var(--info-bg); border-left: 4px solid var(--info); }
.alert-icon { font-size: 1.2rem; }

/* LOGOS */
.login-logo {
    display: block;
    margin: 0 auto 10px auto;
    max-width: 140px;
    height: auto;
}
.sidebar-logo {
    display: block;
    max-width: 140px;
    height: auto;
}

/* CALENDAR GRID FOR FLIGHTS */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.cal-header {
    background: var(--surface-hover);
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.cal-cell {
    background: var(--surface);
    min-height: 100px;
    padding: 8px;
    display: flex;
    flex-direction: column;
}
.cal-cell.empty {
    background: #fdfdfd;
}
.cal-cell.has-events {
    background: #f0f7ff;
}
.cal-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-align: right;
}
.cal-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cal-flight {
    font-size: 0.75rem;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-flight.pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid #fde68a;
}
.cal-flight.completed {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #a7f3d0;
}
.cal-flight:hover {
    filter: brightness(0.95);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
    .topbar { left: 0; padding: 0 12px; }
    .topbar h1 { font-size: 1.05rem; margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
    .topbar-actions { gap: 8px; }
    .topbar-actions .user-badge div:not(.avatar) { display: none; }
    .topbar-actions .user-badge { padding: 4px; border-radius: 50%; }
    
    /* Fix sync indicator and theme toggle on mobile */
    #syncIndicator { font-size: 0 !important; padding: 4px 6px !important; margin-right: 4px !important; }
    #syncIndicator span { font-size: 0.8rem; }
    #themeToggle { padding: 4px 8px; font-size: 0.9rem; }
    
    .main-content { margin-left: 0; padding: 16px; padding-bottom: 80px; }
    .hamburger { display: block; font-size: 1.4rem; padding: 2px; }
    
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
    .stat-card { padding: 14px 16px; gap: 12px; }
    .stat-card .stat-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .stat-card .stat-info h3 { font-size: 0.75rem; }
    .stat-card .stat-info .stat-value { font-size: 1.2rem; }
    
    .charts-grid { grid-template-columns: 1fr; gap: 16px; }
    .chart-card { padding: 16px; }
    .chart-container { height: 220px; }
    
    .card { padding: 16px; }
    .login-card { padding: 32px 20px; }
    
    table { font-size: 0.85rem; }
    thead th { padding: 10px 12px; font-size: 0.75rem; }
    tbody td { padding: 10px 12px; }
    
    .filter-bar { gap: 8px; margin-bottom: 16px; }
    .filter-bar .form-control { font-size: 0.85rem; padding: 8px 10px; }
    
    .btn { padding: 8px 16px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .form-control { max-width: 100%; width: 100%; }
    .filter-bar .btn { width: 100%; }
    .modal-content { width: 95%; margin: 10px; }
    .booking-tabs { flex-wrap: wrap; }
    .booking-tab { flex: 1; text-align: center; padding: 10px 8px; font-size: 0.8rem; }
}
/* Partner Portal Layout */
.partner-portal-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.partner-portal-layout .top-navbar {
    height: 60px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 101;
}
.partner-portal-layout .portal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.partner-portal-layout .sidebar {
    position: static;
    height: 100%;
}
.partner-portal-layout .content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg);
}
