:root {
    --lc-bg: #f4f6fb;
    --lc-surface: #ffffff;
    --lc-border: #e5e9f2;
    --lc-text: #1b2432;
    --lc-muted: #64748b;
    --lc-primary: #0f766e;
    --lc-primary-dark: #0d5e58;
    --lc-admin-accent: #1e293b;
    --lc-sidebar-w: 260px;
}

[data-bs-theme="dark"] {
    --lc-bg: #0f172a;
    --lc-surface: #1e293b;
    --lc-border: #334155;
    --lc-text: #f1f5f9;
    --lc-muted: #94a3b8;
}

body {
    background-color: var(--lc-bg);
    color: var(--lc-text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lc-sidebar {
    width: var(--lc-sidebar-w);
    height: 100vh;
    height: 100dvh;
    background-color: var(--lc-surface);
    border-right: 1px solid var(--lc-border);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.lc-sidebar-header,
.lc-sidebar-footer {
    flex-shrink: 0;
}

.lc-sidebar > ul.nav,
.lc-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex-wrap: nowrap;
    padding-right: 0.2rem;
}

.lc-sidebar .nav-link {
    border-radius: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--lc-text);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lc-sidebar .nav-link i,
.lc-sidebar .nav-link .bi {
    font-size: 1rem;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.lc-sidebar .nav-link:hover,
.lc-sidebar .nav-link.active {
    background-color: rgba(15, 118, 110, 0.12);
    color: var(--lc-primary);
}

/* Super Admin Dark Navy Sidebar (placed after base .lc-sidebar rules for proper specificity) */
.lc-sidebar.lc-sidebar-admin {
    background-color: #0f172a;
    color: #e2e8f0;
    border-right-color: #1e293b;
}

.lc-sidebar.lc-sidebar-admin .lc-sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
}

.lc-sidebar.lc-sidebar-admin .lc-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.lc-sidebar.lc-sidebar-admin .lc-sidebar-nav::-webkit-scrollbar-track {
    background: #0f172a;
}

.lc-sidebar.lc-sidebar-admin .lc-sidebar-nav::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-radius: 999px;
}

.lc-sidebar.lc-sidebar-admin .lc-sidebar-heading {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.65rem 0.85rem 0.25rem;
}

.lc-sidebar.lc-sidebar-admin .nav-link {
    color: #CBD5E1;
}

.lc-sidebar.lc-sidebar-admin .nav-link i,
.lc-sidebar.lc-sidebar-admin .nav-link .bi {
    color: #94A3B8;
}

.lc-sidebar.lc-sidebar-admin .nav-link:hover,
.lc-sidebar.lc-sidebar-admin .nav-link:focus-visible {
    background-color: #1e293b;
    color: #ffffff;
}

.lc-sidebar.lc-sidebar-admin .nav-link:hover i,
.lc-sidebar.lc-sidebar-admin .nav-link:hover .bi,
.lc-sidebar.lc-sidebar-admin .nav-link:focus-visible i,
.lc-sidebar.lc-sidebar-admin .nav-link:focus-visible .bi {
    color: #ffffff;
}

.lc-sidebar.lc-sidebar-admin .nav-link.active,
.lc-sidebar.lc-sidebar-admin .nav-link.active:hover {
    background-color: #1E40AF;
    color: #ffffff;
    font-weight: 600;
}

.lc-sidebar.lc-sidebar-admin .nav-link.active i,
.lc-sidebar.lc-sidebar-admin .nav-link.active .bi {
    color: #ffffff;
}

.lc-main {
    margin-left: var(--lc-sidebar-w);
    width: calc(100% - var(--lc-sidebar-w));
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lc-topbar {
    background-color: var(--lc-surface);
    border-bottom: 1px solid var(--lc-border);
    height: 64px;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.lc-card {
    background-color: var(--lc-surface);
    border: 1px solid var(--lc-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.btn-lc-primary {
    background-color: var(--lc-primary);
    border-color: var(--lc-primary);
    color: #fff;
}

.btn-lc-primary:hover {
    background-color: var(--lc-primary-dark);
    border-color: var(--lc-primary-dark);
    color: #fff;
}

@media (max-width: 991.98px) {
    .lc-sidebar {
        transform: translateX(-100%);
    }
    .lc-sidebar.show {
        transform: translateX(0);
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45);
    }
    .lc-main {
        margin-left: 0;
        width: 100%;
    }
}
