.sidebar {
    width: 320px;
    min-height: 100vh;
    background: var(--dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.logo-box {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: 18px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.logo-box img {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;
}

.menu {
    padding: 18px 14px;
    flex: 1;
    overflow-y: auto;
}

.menu-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 13px 16px;
    margin-bottom: 8px;
    border-radius: 14px;
}

.menu-link span {
    font-size: 15px;
    font-weight: 700;
}

.menu-link small {
    font-size: 11px;
    color: #94a3b8;
}

.menu-link:hover {
    background: rgba(255,255,255,.08);
    color: white;
}

.menu-link.active {
    background: var(--red);
    color: white;
    box-shadow: 0 10px 24px rgba(176,24,52,.35);
}

.menu-link.active small {
    color: rgba(255,255,255,.78);
}

.mobile-menu-btn,
.sidebar-overlay {
    display: none;
}

@media (max-width: 1000px) {
    .app {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 10000;
        width: 50px;
        height: 50px;
        border: none;
        border-radius: 14px;
        background: var(--red);
        color: white;
        font-size: 26px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 10px 28px rgba(0,0,0,.25);
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -340px;
        width: 320px;
        height: 100vh;
        min-height: 100vh;
        z-index: 9999;
        transition: left .28s ease;
        box-shadow: 0 0 40px rgba(0,0,0,.35);
        overflow-y: auto;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        opacity: 0;
        visibility: hidden;
        transition: .28s ease;
        z-index: 9998;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .main {
        width: 100%;
    }

    .topbar {
        padding-left: 82px;
    }
}