/* SMART RT V11 - Sidebar clean accordion, inspired by HUMANIS_HRD layout */
:root {
    --smart-sidebar-width: 280px;
    --smart-sidebar-bg-1: #17213a;
    --smart-sidebar-bg-2: #23142d;
    --smart-sidebar-border: rgba(255, 255, 255, .12);
    --smart-sidebar-text: #eef4ff;
    --smart-sidebar-muted: #aeb9d4;
    --smart-sidebar-gold: #f4cf78;
    --smart-sidebar-active: rgba(251, 192, 45, .12);
    --smart-sidebar-active-border: #f0b54d;
}

body {
    background: #f5f7fb;
}

.sidebar.smart-sidebar {
    width: var(--smart-sidebar-width) !important;
    height: 100vh !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    color: var(--smart-sidebar-text) !important;
    background:
        radial-gradient(circle at top left, rgba(35, 82, 175, .22), transparent 32%),
        linear-gradient(155deg, var(--smart-sidebar-bg-1) 0%, #101827 54%, var(--smart-sidebar-bg-2) 100%) !important;
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 18px 0 50px rgba(15, 23, 42, .14);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

.sidebar.smart-sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar.smart-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar.smart-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .24);
    border-radius: 999px;
}

.main-content {
    margin-left: var(--smart-sidebar-width) !important;
}

.smart-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 18px;
    border-bottom: 1px solid var(--smart-sidebar-border);
}

.smart-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f6d47f, #f4c44d);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

.smart-brand-mark img {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
    display: block !important;
}

.smart-brand-title {
    color: #fff;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .02em;
}

.smart-brand-subtitle {
    margin-top: 4px;
    color: #d6deef;
    font-size: 12px;
    font-weight: 600;
}

.smart-brand-role {
    margin-top: 10px;
    color: var(--smart-sidebar-muted);
    font-size: 11px;
    line-height: 1.2;
}

.smart-sidebar-search {
    position: relative;
    padding: 18px 18px 10px;
}

.smart-sidebar-search i {
    position: absolute;
    left: 30px;
    top: 31px;
    color: #f2ca69;
    font-size: 15px;
}

.smart-sidebar-search input {
    width: 100%;
    height: 42px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    outline: none;
    padding: 0 14px 0 40px;
    font-size: 14px;
    transition: .2s ease;
}

.smart-sidebar-search input::placeholder {
    color: rgba(230, 235, 247, .72);
}

.smart-sidebar-search input:focus {
    border-color: rgba(244, 207, 120, .75);
    box-shadow: 0 0 0 4px rgba(244, 207, 120, .12);
    background: rgba(255, 255, 255, .12);
}

.smart-sidebar-menu {
    padding: 2px 12px 26px;
}

.smart-menu-section {
    margin-top: 5px;
}

.smart-section-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--smart-sidebar-gold);
    padding: 12px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.smart-section-toggle span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.smart-section-arrow {
    font-size: 12px;
    color: rgba(244, 207, 120, .9);
    transition: transform .2s ease;
}

.smart-menu-section .collapse.show + .smart-section-arrow,
.smart-menu-section.is-open .smart-section-arrow {
    transform: rotate(180deg);
}

.smart-menu-list {
    margin: 0;
    padding: 0 0 4px;
}

.sidebar.smart-sidebar a.smart-menu-link {
    color: #eef4ff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 44px !important;
    padding: 10px 13px !important;
    border-radius: 13px !important;
    margin: 3px 0 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}

.sidebar.smart-sidebar a.smart-menu-link i {
    width: 19px;
    min-width: 19px;
    text-align: center;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
}

.sidebar.smart-sidebar a.smart-menu-link span {
    flex: 1;
    min-width: 0;
}

.sidebar.smart-sidebar a.smart-menu-link:hover {
    background: rgba(255, 255, 255, .09) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: #fff !important;
    transform: translateX(2px);
}

.sidebar.smart-sidebar a.smart-menu-link.active {
    background: var(--smart-sidebar-active) !important;
    border-color: var(--smart-sidebar-active-border) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(244, 207, 120, .08), 0 10px 26px rgba(0,0,0,.12);
}

.sidebar.smart-sidebar a.smart-menu-link.active i {
    color: #f6d47f;
}

.smart-menu-section.is-filter-hidden,
.smart-menu-item.is-filter-hidden {
    display: none !important;
}

.smart-empty-menu {
    margin: 14px 8px;
    padding: 14px;
    border-radius: 14px;
    color: var(--smart-sidebar-muted);
    background: rgba(255, 255, 255, .06);
    border: 1px dashed rgba(255,255,255,.18);
    font-size: 13px;
}

@media (max-width: 768px) {
    .sidebar.smart-sidebar {
        left: calc(var(--smart-sidebar-width) * -1 - 20px) !important;
        transition: left .25s ease;
        box-shadow: 0 20px 50px rgba(15, 23, 42, .42);
    }

    .sidebar.smart-sidebar.show {
        left: 0 !important;
    }

    .main-content {
        margin-left: 0 !important;
    }
}
