/* =========================================================
   NANES — LAYOUT
   04 — AMBIENT BACKGROUND
   07 — APPLICATION SHELL
   08 — SIDEBAR
   09 — MAIN AREA
   10 — PAGE HEADER
   ========================================================= */


/* =========================================================
   AMBIENT BACKGROUND
   ========================================================= */

.ambient {

    position: fixed;

    width: 380px;
    height: 380px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(100px);

    opacity: 0.07;

    z-index: -1;

    animation:
        ambientFloat 14s ease-in-out infinite alternate;
}


.ambient-one {

    top: -180px;
    right: 10%;

    background: var(--primary);
}


.ambient-two {

    bottom: -200px;
    left: 8%;

    background: var(--accent);

    animation-delay: -5s;
}


.ambient-three {

    top: 45%;
    left: 45%;

    width: 250px;
    height: 250px;

    background: #38bdf8;

    animation-delay: -9s;
}


@keyframes ambientFloat {

    from {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    to {
        transform:
            translate3d(25px, -30px, 0)
            scale(1.12);
    }
}


/* =========================================================
   APPLICATION SHELL
   ========================================================= */

.shell {

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        var(--sidebar-width)
        minmax(0, 1fr);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {

    position: sticky;

    top: 0;

    height: 100vh;

    padding: 20px 14px;

    display: flex;

    flex-direction: column;

    gap: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(18, 24, 38, 0.92),
            rgba(8, 11, 18, 0.92)
        );

    border-inline-end:
        1px solid var(--border);

    backdrop-filter:
        blur(25px);

    z-index: 50;
}


[data-theme="light"] .sidebar {

    background:
        rgba(255, 255, 255, 0.9);
}


.sidebar-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        10px 8px 20px;

    border-bottom:
        1px solid var(--border);
}


.nav-brand-logo {

    width: 42px;
    height: 42px;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
        0 0 25px
        rgba(185, 154, 98, 0.14);
}


.sidebar-brand-text {

    display: flex;

    flex-direction: column;
}


.sidebar-brand-text strong {
    font-size: 18px;
}


.sidebar-brand-text span {

    color: var(--text-muted);

    font-size: 11px;
}


.sidebar-nav {

    display: flex;

    flex-direction: column;

    gap: 6px;

    overflow-y: auto;

    padding-right: 2px;
}


.nav-btn {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        12px 13px;

    border-radius: 12px;

    background: transparent;

    color: var(--text-secondary);

    text-align: start;

    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}


.nav-btn:hover {

    background:
        var(--surface-light);

    color: var(--text);

    transform:
        translateX(-2px);
}


.nav-btn.active {

    background:
        linear-gradient(
            135deg,
            rgba(185, 154, 98, 0.18),
            rgba(185, 154, 98, 0.06)
        );

    color:
        var(--primary-light);

    border:
        1px solid
        rgba(185, 154, 98, 0.14);

    box-shadow:
        inset 0 0 25px
        rgba(185, 154, 98, 0.025);
}


.nav-btn .icon {

    width: 20px;
    height: 20px;

    flex-shrink: 0;
}


.nav-spacer {
    flex: 1;
}


.nav-exit {
    color: var(--danger);
}


/* =========================================================
   MAIN AREA
   ========================================================= */

.main {

    min-width: 0;

    display: flex;

    flex-direction: column;
}


.topbar {

    min-height: 72px;

    padding:
        12px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    position: sticky;

    top: 0;

    z-index: 40;

    background:
        rgba(8, 11, 18, 0.72);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(25px);
}


[data-theme="light"] .topbar {

    background:
        rgba(245, 246, 248, 0.8);
}


.topbar-sub {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


.topbar-sub h2 {

    font-size: 20px;

    white-space: nowrap;
}


.topbar-badge {

    padding:
        3px 8px;

    border-radius: 999px;

    font-size: 10px;

    color:
        var(--primary-light);

    background:
        rgba(185, 154, 98, 0.1);

    border:
        1px solid
        rgba(185, 154, 98, 0.16);
}


.content {

    width: 100%;

    max-width: 1600px;

    margin: 0 auto;

    padding: 30px;

    animation:
        pageEnter 420ms ease both;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 26px;
}


.page-header h1 {

    font-size:
        clamp(24px, 3vw, 34px);

    font-weight: 800;
}


.page-header p {

    margin-top: 7px;

    color:
        var(--text-muted);

    font-size: 14px;
}


.page-header-actions {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

