:root {
    --sidebar-left-bg: rgba(7, 19, 33, 0.85);
    --sidebar-left-card: rgba(0, 0, 0, 0.3);
    --sidebar-left-stroke: rgba(255, 255, 255, 0.08);
    --sidebar-left-text: #e6f4ff;
    --sidebar-left-muted: rgba(230, 244, 255, 0.75);
    --sidebar-left-accent: #3b82f6;
    --sidebar-left-accent-alt: #2563eb;
    --sidebar-left-shadow: 0 25px 55px rgba(4, 20, 40, 0.45);
    --sidebar-left-radius: 0;
}

.has-global-sidebars .sidebar-kiri {
    background: var(--sidebar-left-bg);
    color: var(--sidebar-left-text);
    border-radius: var(--sidebar-left-radius);
    padding: 20px;
    box-shadow: var(--sidebar-left-shadow);
    position: fixed;
    overflow: hidden;
    width: var(--sidebar-left-width);
    left: 0;
    top: 0;
    bottom: 0;
    margin-left: 0;
    overflow-y: auto;
    z-index: 900;
    max-height: 100vh;
    border-right: 1px solid var(--sidebar-left-stroke);
    padding-top: 60px;
    backdrop-filter: blur(10px);
}

.sidebar-kiri::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), transparent 55%);
    pointer-events: none;
}

.sidebar-kiri::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/icon-hero.jpeg') center/cover;
    opacity: 0.03;
    mix-blend-mode: screen;
    pointer-events: none;
}

.sidebar-kiri__brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.sidebar-kiri__brand .logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--sidebar-left-accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.sidebar-kiri__brand strong {
    color: var(--sidebar-left-text);
    font-weight: 700;
    display: block;
    font-size: 1.1rem;
}

.sidebar-kiri__brand small {
    color: var(--sidebar-left-muted);
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

.sidebar-kiri__section {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.sidebar-kiri__section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-kiri__section li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--sidebar-left-text);
    background: var(--sidebar-left-card);
    border: 1px solid var(--sidebar-left-stroke);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-kiri__section li a:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(6px);
    color: var(--sidebar-left-text);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.sidebar-kiri__section .icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-left-accent);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.sidebar-kiri__section li a:hover .icon {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
}

.sidebar-kiri__section .label {
    font-weight: 600;
    letter-spacing: 0.02em;
    flex: 1;
}

.sidebar-kiri__section .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sidebar-left-accent);
    margin-left: auto;
    animation: sidebar-pulse 1.4s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.sidebar-kiri__section li:nth-child(even) .pulse {
    animation-delay: 0.4s;
}

.section-title {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--sidebar-left-accent);
    font-weight: 700;
    margin: 0 0 10px;
    opacity: 0.9;
}

@keyframes sidebar-pulse {
    0% { transform: scale(1); opacity: 0.9; }
    70% { transform: scale(2.2); opacity: 0; }
    100% { opacity: 0; }
}

/* Tablet & zoomed desktop (<=1500px) */
@media (min-width: 768px) and (max-width: 1500px) {
    .has-global-sidebars .sidebar-kiri {
        position: static !important;
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        margin: 0 0 24px !important;
        border-radius: 0;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(4, 20, 40, 0.3);
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        max-height: none !important;
    }
}

/* Sembunyikan sidebar di mobile */
@media (max-width: 768px) {
    .has-global-sidebars .sidebar-kiri {
        display: none !important;
    }
}

/* Mobile specific optimizations */
@media (max-width: 768px) {
    .has-global-sidebars .sidebar-kiri {
        margin: 0 0 16px;
        padding: 16px;
        border-radius: 0;
    }
    
    .sidebar-kiri__brand {
        margin-bottom: 16px;
    }
    
    .sidebar-kiri__brand .logo {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .sidebar-kiri__section {
        margin-bottom: 14px;
    }
    
    .sidebar-kiri__section li a {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .sidebar-kiri__section .icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .sidebar-kiri__section .label {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
}

.has-global-sidebars .sidebar-kiri::-webkit-scrollbar {
    width: 6px;
}

.has-global-sidebars .sidebar-kiri::-webkit-scrollbar-track {
    background: transparent;
}

.has-global-sidebars .sidebar-kiri::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.has-global-sidebars .sidebar-kiri::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
