/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --mint:        #3EB489;
    --mint-light:  #D1FAE5;
    --mint-mid:    #6EE7B7;
    --mint-dark:   #065F46;
    --white:       #FFFFFF;
    --off-white:   #F7FFFB;
    --black:       #0A0A0A;
    --text-main:   #111827;
    --text-muted:  #4B5563;
    --border:      #D1FAE5;
    --shadow-sm:   0 2px 8px rgba(62,180,137,0.10);
    --shadow-md:   0 4px 20px rgba(62,180,137,0.15);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--off-white);
    color: var(--text-main);
    overflow: hidden;
}

#root {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: 20%;
    min-width: 210px;
    max-width: 280px;
    height: 100vh;
    background: var(--white);
    border-right: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 28px 18px 24px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(62,180,137,0.07);
}

/* Subtle lambda watermark */
.sidebar::after {
    content: 'λ';
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-family: 'Syne', sans-serif;
    font-size: 140px;
    font-weight: 800;
    color: var(--mint-light);
    opacity: 0.45;
    pointer-events: none;
    line-height: 1;
    user-select: none;
}

/* ── Logo Block ─────────────────────────────────────────────── */
.logo-block {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 6px;
    padding: 0 4px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-top {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.5px;
    color: var(--black);
}

.logo-bot {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: 9px;
    letter-spacing: 2.5px;
    color: var(--mint);
    text-transform: uppercase;
    line-height: 1;
}

/* ── Divider ────────────────────────────────────────────────── */
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 18px 0;
}

/* ── Nav ────────────────────────────────────────────────────── */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 13px 15px;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: left;
    color: var(--text-muted);
    position: relative;
}

.nav-btn:hover {
    background: var(--mint-light);
    border-color: var(--border);
    color: var(--mint-dark);
}

.nav-btn.active {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-color: var(--mint);
    color: var(--mint-dark);
    box-shadow: var(--shadow-sm);
}

/* Active left accent bar */
.nav-btn.active::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--mint);
    border-radius: 0 3px 3px 0;
}

.nav-icon {
    font-size: 19px;
    flex-shrink: 0;
    line-height: 1;
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-label {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1;
    letter-spacing: 0.3px;
}

.nav-sub {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.65;
    letter-spacing: 0.2px;
    line-height: 1;
}

/* ── Sidebar Footer ─────────────────────────────────────────── */
.sidebar-footer {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--mint);
    text-align: center;
    text-transform: uppercase;
    font-family: 'Syne', sans-serif;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

/* ── Content Area ───────────────────────────────────────────── */
#content-area {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    background: var(--off-white);
    position: relative;
}

#content-area::-webkit-scrollbar { width: 5px; }
#content-area::-webkit-scrollbar-track { background: transparent; }
#content-area::-webkit-scrollbar-thumb {
    background: var(--mint-mid);
    border-radius: 3px;
}

/* ── Page fade-in ───────────────────────────────────────────── */
#page-content {
    animation: pageFade 0.3s ease;
}

@keyframes pageFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}
