﻿.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 18px;
    border-right: 1px solid rgba(148,163,184,0.18);
    background: rgba(15,23,42,0.82);
    backdrop-filter: blur(10px);
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.logo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.06);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.logo-circle {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
}

.app-logo {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain;
}

.logo-circle:hover {
    box-shadow: 0 0 18px rgba(59,130,246,0.45);
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}

.logo-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-radius: 18px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.18s ease;
}

    .menu-item:hover {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

    .menu-item.active {
        background: linear-gradient(135deg, #4f46e5, #2563eb);
        color: #fff;
        box-shadow: 0 10px 22px rgba(37,99,235,0.28);
    }

.menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu-label {
    font-size: 14px;
    font-weight: 600;
}

.sidebar-bottom {
    padding: 14px 10px 4px 10px;
}

.sidebar-note {
    font-size: 12px;
    line-height: 1.5;
    color: #94a3b8;
    opacity: 0.9;
}
.menu-accordion {
    width: 100%;
}

.menu-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    padding: 11px 14px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}

    .menu-group-toggle:hover {
        background: rgba(148, 163, 184, 0.12);
    }

    .menu-group-toggle .menu-label {
        flex: 1;
    }

.menu-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.menu-accordion.open .menu-arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding-left: 8px;
}

.menu-accordion.open .submenu {
    max-height: 180px;
}

.submenu-item {
    padding-left: 28px;
    font-size: 13px;
}