:root {
    --amg-primary: #f3c623;
    --amg-dark: #0f172a;
}

.admin-sidebar {
    width: 220px;
    background: #0f172a;
    color: #fff;
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 1rem;
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-sidebar__brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
}

.admin-sidebar__menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-sidebar__menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar__menu a i {
    font-size: 1.05rem;
}

.admin-sidebar__menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar__menu a.is-active {
    background: rgba(243, 198, 35, 0.16);
    color: var(--amg-primary);
    border: 1px solid rgba(243, 198, 35, 0.3);
}

@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 64px;
        width: 260px;
        height: calc(100vh - 64px);
        border-radius: 0 1rem 1rem 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        transform: translateX(-105%);
        z-index: 1040;
        overflow-y: auto;
    }

    .admin-sidebar__menu {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        top: 60px;
        height: calc(100vh - 60px);
        width: 240px;
    }
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1030;
}

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

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