.ssg-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--ssg-sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #111827 0%, #0b1120 100%);
    color: var(--ssg-white);
    z-index: 1030;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(0);
    transition: transform 0.25s ease;
}

.ssg-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1025;
    display: none;
    background: rgba(15, 23, 42, 0.48);
}

.min-w-0 {
    min-width: 0;
}

.ssg-sidebar-brand {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ssg-sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ssg-white);
    text-decoration: none;
}

.ssg-sidebar-brand-link:hover {
    color: var(--ssg-white);
}

.ssg-sidebar-logo {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: visible;
    flex: 0 0 46px;
}

.ssg-sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ssg-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.ssg-sidebar-close {
    align-items: center;
    border-color: rgba(255, 255, 255, 0.14);
    display: none;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.ssg-sidebar-nav {
    padding: 18px 14px 24px;
}

.ssg-sidebar-group + .ssg-sidebar-group {
    margin-top: 8px;
}

.ssg-sidebar-section-toggle {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.18s ease;
}

.ssg-sidebar-section-toggle:hover,
.ssg-sidebar-section-toggle:not(.collapsed) {
    color: var(--ssg-white);
    background: rgba(255, 255, 255, 0.09);
}

.ssg-sidebar-section-toggle i {
    font-size: 13px;
    transition: transform 0.18s ease;
}

.ssg-sidebar-section-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.ssg-sidebar-section-items {
    padding: 8px 0 4px;
}

.ssg-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.18s ease;
}

.ssg-sidebar-link i {
    width: 20px;
    font-size: 17px;
    text-align: center;
}

.ssg-sidebar-link:hover,
.ssg-sidebar-link.active {
    color: var(--ssg-white);
    background: rgba(255, 255, 255, 0.08);
}

.ssg-sidebar-link.active {
    background: linear-gradient(90deg, var(--ssg-primary) 0%, var(--ssg-primary-dark) 100%);
    box-shadow: 0 12px 28px rgba(215, 25, 32, 0.28);
}

.ssg-topbar {
    min-height: var(--ssg-topbar-height);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.ssg-sidebar-toggle {
    align-items: center;
    background: var(--ssg-primary);
    border: 1px solid var(--ssg-primary);
    box-shadow: 0 8px 18px rgba(215, 25, 32, 0.24);
    color: #fff;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 20px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ssg-sidebar-toggle:hover,
.ssg-sidebar-toggle:focus {
    background: var(--ssg-primary-dark);
    border-color: var(--ssg-primary-dark);
    color: #fff;
}

.ssg-sidebar-toggle:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(215, 25, 32, 0.22), 0 8px 18px rgba(215, 25, 32, 0.24);
}

.ssg-content {
    background: var(--ssg-bg);
}

.ssg-footer {
    margin-top: auto;
}

body.ssg-sidebar-collapsed .ssg-sidebar {
    transform: translateX(-100%);
}

body.ssg-sidebar-collapsed .ssg-main {
    margin-left: 0;
}

@media (max-width: 991.98px) {
    .ssg-sidebar {
        transform: translateX(-100%);
    }

    .ssg-sidebar-backdrop {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.ssg-sidebar-open {
        overflow: hidden;
    }

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

    body.ssg-sidebar-open .ssg-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .ssg-sidebar-close {
        display: inline-flex;
    }
}

@media (min-width: 992px) {
    body.ssg-sidebar-collapsed .ssg-sidebar-backdrop {
        display: none;
    }
}

@media (max-width: 600px) {
    .ssg-topbar .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ssg-topbar h5 {
        font-size: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ssg-topbar small {
        display: none;
    }

    .ssg-sidebar-toggle {
        flex-basis: 40px;
        height: 40px;
        width: 40px;
    }

    .ssg-user-name {
        display: none;
    }
}
