﻿:root {
    --bg: #0b1220;
    --panel: #0f172a;
    --panel2: #111827;
    --border: rgba(148,163,184,.16);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --content: #f4f6f9;
    --accent: #2563eb;
    --accent2: #0ea5e9;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    background: var(--content);
    font-family: Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial;
}

/* SIDEBAR */
.sidebar {
    width: 290px;
    background: linear-gradient(180deg,var(--panel),var(--panel2));
    color: var(--text);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(148,163,184,.10);
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,var(--accent),var(--accent2));
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(37,99,235,.25);
}

.brand-title {
    font-weight: 900;
    letter-spacing: .2px;
    line-height: 1.1;
}

    .brand-title span {
        opacity: .8;
    }

.brand-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148,163,184,.10);
}

    .sidebar-search i {
        color: rgba(226,232,240,.75);
    }

    .sidebar-search input {
        width: 100%;
        border: 1px solid rgba(148,163,184,.14);
        background: rgba(2,6,23,.25);
        color: var(--text);
        padding: 10px 12px;
        border-radius: 12px;
        outline: none;
    }

        .sidebar-search input:focus {
            border-color: rgba(37,99,235,.6);
            box-shadow: 0 0 0 4px rgba(37,99,235,.15);
        }

.sidebar-menu {
    padding: 12px;
    overflow: auto;
    flex: 1 1 auto;
}

.menu-empty {
    color: var(--muted);
    font-size: 13px;
    padding: 10px;
}

.menu-section {
    border: 1px solid rgba(148,163,184,.10);
    background: rgba(2,6,23,.16);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
}

.menu-section-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border: 0;
    cursor: pointer;
    background: transparent;
    color: var(--text);
}

    .menu-section-head .left {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 900;
    }

.chevron {
    opacity: .7;
    transition: transform .15s ease;
}

    .chevron.open {
        transform: rotate(180deg);
    }

.menu-section-body {
    display: none;
    padding: 6px 8px 10px 8px;
}

    .menu-section-body.open {
        display: block;
    }

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    margin-top: 6px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: rgba(226,232,240,.92);
    text-decoration: none;
}

    .menu-item:hover {
        background: rgba(15,23,42,.35);
        border-color: rgba(148,163,184,.14);
    }

    .menu-item.active {
        background: rgba(37,99,235,.18);
        border-color: rgba(37,99,235,.35);
    }

    .menu-item span {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.badge {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(14,165,233,.18);
    border: 1px solid rgba(14,165,233,.26);
    color: #e0f2fe;
}

/* FOOTER */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(148,163,184,.10);
    background: rgba(2,6,23,.20);
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(148,163,184,.12);
    border-radius: 16px;
    background: rgba(2,6,23,.16);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: rgba(37,99,235,.18);
    border: 1px solid rgba(37,99,235,.30);
}

.user-meta span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.lang {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(148,163,184,.12);
    border-radius: 16px;
    background: rgba(2,6,23,.16);
}

.lang-select {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--text);
    outline: none;
    font-weight: 900;
}

    .lang-select option {
        color: #111827;
    }

.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 16px;
    text-decoration: none;
    color: #fecaca;
    border: 1px solid rgba(239,68,68,.20);
    background: rgba(239,68,68,.10);
}

    .btn-logout:hover {
        background: rgba(239,68,68,.14);
    }

/* MAIN */
.main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-title {
    font-weight: 900;
    font-size: 18px;
    color: #0f172a;
}

.page-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.pill {
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37,99,235,.10);
    border: 1px solid rgba(37,99,235,.20);
    color: #1d4ed8;
}

.content {
    padding: 20px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.crumbs {
    font-size: 12px;
    color: rgba(15,23,42,.55);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.crumb.link {
    text-decoration: none;
    color: rgba(37,99,235,.85);
}

    .crumb.link:hover {
        text-decoration: underline;
    }

.sep {
    opacity: .45;
}

.page-title {
    margin: 4px 0 0 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .2px;
}
