/* =============================================
   RentDesk - Property Management System CSS
   ============================================= */

:root {
    --primary: #2C3E50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;
    --accent: #3498DB;
    --accent-dark: #2980b9;
    --accent-light: #5dade2;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #2980b9;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --bg-light: #f4f6f9;
    --card-shadow: 0 2px 12px rgba(44, 62, 80, 0.06);
    --stripe: #f6f8fb;
}

/* Global property-focus switcher (top bar) */
.property-switcher .form-select { min-width: 170px; max-width: 240px; border-color: var(--border-color); }

/* Tabbed sub-navigation (Reports, Financial Statements, Accounts Payable, Approvals, Tasks,
   General Ledger). The global sidebar rule `.nav-link { color: rgba(255,255,255,.7) !important }`
   would otherwise render these white-on-white; this scopes clean underline-style tabs and wins
   with higher specificity + !important. */
.report-tabs {
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
    flex-wrap: wrap;
}
.report-tabs .nav-link {
    color: var(--text-muted) !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: 500;
    padding: .55rem .95rem;
    margin-bottom: -1px;
    transition: color .12s ease, border-color .12s ease;
}
.report-tabs .nav-link:hover {
    color: var(--accent) !important;
    border-bottom-color: var(--accent-light) !important;
}
.report-tabs .nav-link.active {
    color: var(--accent) !important;
    background: transparent !important;
    border-bottom-color: var(--accent) !important;
    font-weight: 600;
}

/* Top-bar global search */
.topbar-search { background:#f1f4f8; border:1px solid var(--border-color); border-radius:20px; padding:2px 10px; min-width:180px; max-width:280px; }
.topbar-search input { box-shadow:none !important; }
.topbar-search input:focus { outline:none; }

/* Analytics chart legend dot */
.legend-dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:3px; vertical-align:middle; }

/* Role-adaptive dashboard quick-links */
.quick-link { transition: transform .12s ease, box-shadow .12s ease; }
.quick-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(44,62,80,.12); }
.quick-link-icon {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(52,152,219,.12); color: var(--accent); font-size: 13px;
}

/* ============ GLOBAL ============ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    background-color: var(--bg-light);
    color: #343a40;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
    text-decoration: none;
}

/* ============ IMPERSONATION BAR ============ */
.impersonation-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 40px;
    z-index: 3000;
    background: repeating-linear-gradient(45deg, #b45309, #b45309 12px, #a34908 12px, #a34908 24px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ============ LAYOUT WRAPPER ============ */
.app-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
/* When impersonating, drop the whole app below the warning bar. */
.app-wrapper.has-impersonation-bar { height: calc(100vh - 40px); margin-top: 40px; }
.app-wrapper.has-impersonation-bar .sidebar { top: 40px; height: calc(100vh - 40px); }

/* ============ SIDEBAR ============ */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    /* Per-company branding overrides --sidebar-bg; falls back to the default KlearProps gradient. */
    background: var(--sidebar-bg, linear-gradient(165deg, #1b2a4a 0%, #223a63 100%));
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: #16233d;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
}

/* Sidebar Logo / Brand */
.sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-brand-icon {
    width: auto;
    height: auto;
    background: transparent;
    color: #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-brand-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-brand-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    display: block;
    font-weight: 400;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.sidebar-section-label {
    color: #8296c4;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    padding: 16px 24px 6px;
    display: block;
}

.nav-item {
    margin: 2px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #c3cfe6 !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff !important;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--accent-light);
}

.nav-link .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #9fb0d4;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    color: #ffffff;
}

.nav-link .nav-icon .nav-svg {
    width: 19px;
    height: 19px;
    display: block;
}

.nav-link .nav-text {
    flex: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    overflow: hidden;
}

.sidebar-user-name {
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sidebar-user-role {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    display: block;
}

/* ============ MAIN CONTENT AREA ============ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

/* ============ TOPBAR ============ */
.topbar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    flex: 1;
}

.topbar-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.topbar-welcome {
    color: var(--text-muted);
    font-size: 13px;
}

.topbar-welcome strong {
    color: var(--primary);
}

/* ============ PAGE CONTENT ============ */
.page-content {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
    background: var(--bg-light);
}

/* ============ STAT CARDS ============ */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.stat-card-icon.bg-primary-soft {
    background: rgba(52, 152, 219, 0.12);
    color: var(--accent);
}

.stat-card-icon.bg-success-soft {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}

.stat-card-icon.bg-warning-soft {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}

.stat-card-icon.bg-danger-soft {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.stat-card-icon.bg-info-soft {
    background: rgba(41, 128, 185, 0.12);
    color: var(--info);
}

.stat-card-icon.bg-purple-soft {
    background: rgba(142, 68, 173, 0.12);
    color: #8e44ad;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

/* ============ CARDS ============ */
.card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 28px rgba(44, 62, 80, 0.10);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0 !important;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary);
}

.card-header .card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

/* ============ TABLES ============ */
.table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.table-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.table {
    margin: 0;
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 13px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: #343a40;
    background: #fff;
    transition: background-color 0.12s ease;
}

/* Zebra striping — every second record gets a soft gray band. */
.table tbody tr:nth-child(even) td {
    background: #f6f8fb;
}

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

/* Hover wins over the stripe (declared after it). */
.table tbody tr:hover td {
    background: #eaf2fb;
}

/* ============ STATUS BADGES ============ */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Payment / Lease status */
.badge-paid, .badge-active {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}

.badge-overdue, .badge-terminated, .badge-emergency {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.badge-pending, .badge-medium {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}

.badge-expired, .badge-inactive, .badge-low {
    background: rgba(108, 117, 125, 0.12);
    color: var(--text-muted);
}

.badge-high {
    background: rgba(230, 126, 34, 0.12);
    color: #e67e22;
}

.badge-inprogress, .badge-assigned {
    background: rgba(52, 152, 219, 0.12);
    color: var(--accent);
}

.badge-completed, .badge-resolved {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}

/* ============ BUTTONS ============ */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.28);
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark), #216a9c);
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.38);
    transform: translateY(-1px);
}

.btn-success { background: linear-gradient(135deg, var(--success), #1e8449); border: none; }
.btn-danger  { background: linear-gradient(135deg, var(--danger), #c0392b); border: none; }

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Table action icons: borderless, small, colour-coded by action, subtle hover.
   No box/border so they read as plain icons rather than buttons. */
.btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    background: transparent !important;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1;
    box-shadow: none !important;
    transition: background-color .12s ease, transform .12s ease;
}
.btn-icon:hover {
    background: rgba(0, 0, 0, .07) !important;
    transform: translateY(-1px);
}
.btn-icon:disabled,
.btn-icon.disabled {
    opacity: .45;
    transform: none;
}
/* Keep the action colour on hover (Bootstrap turns outline buttons solid/white). */
.btn-icon.btn-outline-primary { color: #3498db; }
.btn-icon.btn-outline-primary:hover { color: #2980b9 !important; }
.btn-icon.btn-outline-secondary { color: #6c757d; }
.btn-icon.btn-outline-secondary:hover { color: #495057 !important; }
.btn-icon.btn-outline-danger { color: #e74c3c; }
.btn-icon.btn-outline-danger:hover { color: #c0392b !important; }
.btn-icon.btn-outline-success { color: #27ae60; }
.btn-icon.btn-outline-success:hover { color: #1e8449 !important; }
.btn-icon.btn-outline-warning { color: #f39c12; }
.btn-icon.btn-outline-warning:hover { color: #d68910 !important; }
.btn-icon.btn-outline-info { color: #17a2b8; }
.btn-icon.btn-outline-info:hover { color: #117a8b !important; }

/* ============ APP MODALS (shared, for add/edit dialogs) ============ */
.app-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1055;
    padding: 4vh 1rem;
    overflow-y: auto;
}
.app-modal {
    background: #fff;
    border-radius: .75rem;
    width: 720px;
    max-width: 96vw;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    animation: appModalIn .18s ease;
    margin-bottom: 4vh;
}
.app-modal-sm { width: 460px; }
.app-modal-lg { width: 920px; }
.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef0f3;
}
.app-modal-header h5 { margin: 0; font-weight: 700; font-size: 1.05rem; }
.app-modal-body { padding: 1.25rem; }
.app-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #eef0f3;
}
@keyframes appModalIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
}

/* ============ FORMS ============ */
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
}

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    margin-bottom: 6px;
}

.input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
    color: var(--text-muted);
}

/* ============ SEARCH BAR ============ */
.search-bar {
    position: relative;
    max-width: 300px;
}

.search-bar .form-control {
    padding-left: 36px;
    border-radius: 8px;
}

.search-bar .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

/* ============ PAGINATION ============ */
.pagination-wrapper {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: white;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 13px;
}

.pagination .page-link {
    color: var(--accent);
    border-color: var(--border-color);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
}

/* ============ LOGIN PAGE ============ */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* KlearProps brand lockup (login) */
.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 4px auto 10px;
    color: var(--primary);
}
.brand-mark {
    width: 44px;
    height: 56px;
    flex: none;
}
/* K strokes inherit the surrounding text colour (dark on the login card, white in the
   sidebar); the accent dot is always brand blue. */
.brand-mark line {
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
}
.brand-mark .dot { fill: var(--accent); }
.brand-divider {
    width: 1px;
    align-self: stretch;
    margin: 6px 0;
    background: #d9dee6;
}
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.brand-name .k1 { color: var(--primary); }
.brand-name .k2 { color: #9aa4b2; }
.brand-tag {
    font-size: 9.5px;
    letter-spacing: 0.26em;
    color: #9aa4b2;
    margin-top: 5px;
    font-weight: 500;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    transition: background 0.2s;
}

.login-btn:hover {
    background: var(--accent-dark);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============ LOADING SPINNER ============ */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    flex-direction: column;
    gap: 16px;
}

.loading-container .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent);
}

.loading-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--primary);
}

.empty-state h5 {
    font-size: 16px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ============ STARS RATING ============ */
.stars {
    color: #f1c40f;
    font-size: 13px;
}

.stars .star-empty {
    color: #dee2e6;
}

/* ============ TENANT/USER AVATAR ============ */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============ ALERTS ============ */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 14px;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent);
}

/* ============ PAGE HEADER ============ */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 4px;
}

.page-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}

/* ============ SUMMARY BAR ============ */
.summary-bar {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.summary-value.text-success {
    color: var(--success) !important;
}

.summary-value.text-danger {
    color: var(--danger) !important;
}

/* ============ PROGRESS BAR ============ */
.progress {
    border-radius: 10px;
    height: 6px;
}

.progress-bar {
    background: var(--accent);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        transform: translateX(-260px);
    }

    .sidebar.open {
        transform: translateX(0);
        width: 260px;
        min-width: 260px;
    }

    .main-content {
        margin-left: 0;
    }

    .page-content {
        padding: 16px;
    }

    .stat-card-value {
        font-size: 22px;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar {
        max-width: 100%;
        width: 100%;
    }
}
