.transition-all {
    transition: all 0.3s ease-in-out;
}

.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.15); 
    color: #ffffff; 
    font-weight: 600; 
    box-shadow: inset 3px 0 0 #3b82f6; 
}
.sidebar-link.active i:not(.submenu-arrow) {
    color: #ffffff; 
}

.profile-dropdown {
    display: block; 
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    background-color: #1f2937;
    border-radius: 0.75rem; 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.15); 
    z-index: 50;
    min-width: 15rem; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transform-origin: top right;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    pointer-events: none; 
}
.profile-dropdown.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.smooth-hover:hover {
    background-color: #f0f4ff; 
}
.card-hover {
     transition: all 0.3s ease-in-out;
}
.card-hover:hover {
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 12px 25px -5px rgba(59, 130, 246, 0.2), 0 8px 10px -6px rgba(59, 130, 246, 0.15);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#main-content-wrapper main::-webkit-scrollbar-track { 
     background: #e5e7eb; 
     border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b; 
}
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(0, 0, 0, 0.1); 
    border-radius: 0.375rem; 
    margin-top: 0.25rem;
    padding-left: 0.5rem; 
}
.submenu.open {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
    padding-bottom: 0.5rem;
}
.submenu a {
    padding: 0.6rem 1rem 0.6rem 1.5rem; 
    font-size: 0.8rem;
    display: block;
    color: #d1d5db; 
    border-radius: 0.375rem; 
    margin: 0.1rem 0.5rem; 
}
 .submenu a:hover {
     color: #ffffff;
     background-color: rgba(255, 255, 255, 0.1); 
 }

.submenu-arrow {
    transition: transform 0.3s ease-in-out;
}
.submenu-arrow.rotate-180 {
    transform: rotate(180deg);
}

.stat-icon-gradient {
    background-image: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
}

@media (max-width: 1023px) {
    #sidebar {
        transform: translateX(-100%);
    }
    #sidebar.open {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
#dashboard-carousel-section { animation-delay: 0.5s; } 
.main-content-section { animation-delay: 0.6s; } 

.carousel-container {
    aspect-ratio: 16 / 8; 
    max-height: 450px;
    padding: 1rem 0;
    position: relative;
}
#carousel-wrapper {
    align-items: center;
    height: 100%;
}
.carousel-slide {
    width: 70%;
    margin: 0 1rem; 
    flex-shrink: 0;
    border-radius: 0.75rem; 
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.5;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Transisi lebih smooth */
    position: relative;
    z-index: 0; 
}
@media (max-width: 767px) {
    .carousel-slide {
         width: 80%; 
         margin: 0 0.5rem; 
         transform: scale(0.88); 
         opacity: 0.55;
    }
}
.carousel-slide.active-slide {
    transform: scale(1); 
    opacity: 1; 
    z-index: 10; 
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2), 0 8px 15px -8px rgba(0, 0, 0, 0.15); 
}
.carousel-indicator {
    height: 4px;
    width: 1.5rem;
    background-color: rgba(55, 65, 81, 0.3);
    border-radius: 2px;
    transition: background-color 0.3s ease, width 0.3s ease;
    cursor: pointer;
}
.carousel-indicator.active {
    background-color: #3b82f6;
    width: 2.5rem;
}
.carousel-arrow {
    background-color: rgba(255, 255, 255, 0.8); 
    color: #1f2937; 
    border-radius: 50%;
    width: 2.75rem; 
    height: 2.75rem; 
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
    z-index: 20;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-arrow:hover {
     background-color: rgba(255, 255, 255, 1); 
     box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}
#carousel-prev { left: 1rem; }
#carousel-next { right: 1rem; }
@media (max-width: 767px) {
     #carousel-prev { left: 0.5rem; }
     #carousel-next { right: 0.5rem; }
     .carousel-arrow { width: 2.5rem; height: 2.5rem; }
}
.slide-content { position: relative; z-index: 1; }
.highlight-text { background-color: rgba(255, 255, 255, 0.15); padding: 2px 8px; border-radius: 6px; display: inline-block; }
