.sidebar {
    background: #fffaf2;
    border: 1px solid #eadcc8;
    border-radius: 26px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 12px 30px rgba(88, 62, 34, 0.08);
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    box-sizing: border-box;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px 10px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: 16px;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.sidebar-logo:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 8px 18px rgba(88, 62, 34, 0.06);
}

.sidebar-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(88, 62, 34, 0.08);
}

.sidebar-logo strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
    color: #2f2a24;
    font-style: italic;
    letter-spacing: -0.5px;
}

.sidebar-brand-copy {
    min-width: 0;
}

.sidebar-logo p {
    margin: 6px 0 0;
    font-size: 10.5px;
    line-height: 1.3;
    white-space: normal;
    color: #8a7b6a;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.15px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 14px;
    box-sizing: border-box;
    border-radius: 16px;
    font-size: 15px;
    color: #5f5143;
    font-weight: 600;
    transition: 0.2s ease;
}

.sidebar-menu a span {
    width: 22px;
    text-align: center;
}


.sidebar-menu-divider {
    height: 1px;
    margin: 18px 12px 12px;
    background: #e4d5c0;
    flex: 0 0 auto;
}

.sidebar-settings-link {
    margin-top: 0;
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
    background: #f0dfc6;
    color: #2f2a24;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(176, 135, 88, 0.18);
}


.sidebar-character {
    text-align: center;
    background: #fffdf8;
    border: 1px solid #eadcc8;
    border-radius: 22px;
    padding: 14px 10px;
}

.character-face {
    font-size: 52px;
    line-height: 1;
}

.sidebar-character small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #7b6b58;
}

.sidebar-admin-label {
    margin: 14px 12px 0;
    padding-top: 16px;
    border-top: 1px solid #eadcc8;
    color: #a48c70;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}
.sidebar-menu{overflow-y:auto;padding-right:2px}.sidebar-menu::-webkit-scrollbar{width:5px}.sidebar-menu::-webkit-scrollbar-thumb{background:#dfd0bc;border-radius:99px}

/* Unified Lucide line icons */
.sidebar-logo-icon .lucide {
    width: 24px;
    height: 24px;
    color: #6e8451;
    stroke-width: 2;
}

.sidebar-menu a > .lucide {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #7a6b5c;
    stroke-width: 2;
    transition: color .2s ease, transform .2s ease;
}

.sidebar-menu a.active > .lucide,
.sidebar-menu a:hover > .lucide {
    color: #5f7445;
    transform: translateY(-1px);
}

.sidebar-logout-button .lucide {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}


.sidebar-brand{margin-bottom:38px;}
.sidebar-brand-subtitle{line-height:1.35;white-space:normal;}

/* Mobile drawer must be removed from normal document flow.
   This file loads after base.css, so the override belongs here. */
@media (max-width: 820px) {
    .sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        top: 0 !important;
        left: 0 !important;
        width: min(84vw, 320px) !important;
        height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        transform: translateX(-105%);
        z-index: 110;
    }

    body.mobile-menu-open .sidebar {
        transform: translateX(0);
    }
}
