/* Struktur CSS untuk Sidebar Hijau */

/* Reset dan override untuk memastikan gradasi hijau bekerja */
.app-sidebar {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%) !important;
    position: relative !important;
}

/* Override untuk tema gelap */
[data-bs-theme="dark"] .app-sidebar {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #166534 100%) !important;
}

/* Override untuk tema terang */
[data-bs-theme="light"] .app-sidebar {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%) !important;
}

/* Memastikan sidebar memiliki tinggi penuh */
.app-sidebar {
    height: 100vh !important;
    min-height: 100vh !important;
}

/* Styling untuk logo area */
.app-sidebar-logo {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 1rem !important;
}

/* Menu container */
.app-sidebar-menu {
    background: transparent !important;
}

/* Menu wrapper */
.app-sidebar-wrapper {
    background: transparent !important;
}

/* Scroll area */
.app-sidebar-menu .scroll-y {
    background: transparent !important;
}

/* Menu items */
.app-sidebar .menu-item {
    margin: 2px 8px !important;
}

.app-sidebar .menu-item .menu-link {
    background: transparent !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Hover effect */
.app-sidebar .menu-item .menu-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transform: translateX(8px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Active state */
.app-sidebar .menu-item .menu-link.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    color: #ffffff !important;
    border-left: 4px solid #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transform: translateX(5px) !important;
}

/* Menu icons */
.app-sidebar .menu-item .menu-icon {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
}

.app-sidebar .menu-item .menu-link:hover .menu-icon,
.app-sidebar .menu-item .menu-link.active .menu-icon {
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* Menu titles */
.app-sidebar .menu-item .menu-title {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.app-sidebar .menu-item .menu-link:hover .menu-title,
.app-sidebar .menu-item .menu-link.active .menu-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Sub menu */
.app-sidebar .menu-sub {
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    margin: 4px 0 4px 16px !important;
    border-left: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.app-sidebar .menu-sub .menu-item .menu-link {
    padding: 8px 12px !important;
    margin: 2px 4px !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.app-sidebar .menu-sub .menu-item .menu-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.app-sidebar .menu-sub .menu-item .menu-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-left: 3px solid #ffffff !important;
}

/* Menu bullets */
.app-sidebar .menu-sub .menu-item .menu-bullet .bullet {
    background-color: rgba(255, 255, 255, 0.6) !important;
}

.app-sidebar .menu-sub .menu-item .menu-link:hover .menu-bullet .bullet,
.app-sidebar .menu-sub .menu-item .menu-link.active .menu-bullet .bullet {
    background-color: #ffffff !important;
}

/* Menu accordion arrows */
.app-sidebar .menu-item.menu-accordion .menu-arrow {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: transform 0.3s ease !important;
}

.app-sidebar .menu-item.menu-accordion .menu-link:hover .menu-arrow,
.app-sidebar .menu-item.menu-accordion .menu-link.active .menu-arrow {
    color: #ffffff !important;
}

.app-sidebar .menu-item.menu-accordion.menu-here > .menu-link .menu-arrow {
    transform: rotate(90deg) !important;
}

/* Sidebar toggle button */
.app-sidebar-toggle {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.app-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
}

/* Scrollbar styling */
.app-sidebar .scroll-y::-webkit-scrollbar {
    width: 8px !important;
}

.app-sidebar .scroll-y::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

.app-sidebar .scroll-y::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.app-sidebar .scroll-y::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6) !important;
}

/* Responsive design */
@media (max-width: 991.98px) {
    .app-sidebar {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%) !important;
    }

    .app-sidebar .menu-item .menu-link {
        margin: 1px 4px !important;
        padding: 10px 12px !important;
    }
}

/* Animation effects */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.app-sidebar .menu-item {
    animation: slideIn 0.3s ease-out;
}

/* Glow effect for active items */
.app-sidebar .menu-item .menu-link.active::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 3px !important;
    height: 100% !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Enhanced shadow for sidebar */
.app-sidebar {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3) !important;
}

/* Minimized sidebar */
.app-sidebar-minimize .app-sidebar {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

/* Mobile sidebar */
@media (max-width: 991.98px) {
    .app-sidebar {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%) !important;
    }
}
