/* Background batik khas Indonesia */
body {
    background: url('../img/batik-pattern.svg') repeat;
    background-size: 300px;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Efek profesional untuk carousel */
.carousel-image-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-image-container img {
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-image-container img {
    transform: scale(1.05);
}

.carousel-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 3;
    text-align: left;
}

.slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-indicator {
    width: 50px;
    height: 4px;
    background-color: #fff;
    margin-bottom: 10px;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: rgba(255,255,255,0.3);
    opacity: 1;
}

/* Style untuk tombol logout */
.logout-btn {
    background: var(--danger-gradient);
    color: white !important;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(255, 95, 109, 0.3);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 95, 109, 0.4);
    background: var(--danger-gradient-dark);
}

.logout-btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

.wrapper {
    display: flex;
    width: 100%;
}

/* Modern glass-morphism sidebar (transparan & blur) */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-right: 1.5px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    padding: 20px 0;
}

.sidebar .nav-link {
    color: #f8f9fa;
    padding: 12px 25px;
    font-size: 1rem;
    margin: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.sidebar .nav-link i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Modern content area */
.main-content {
    width: calc(100% - 280px);
    margin-left: 280px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.sidebar.collapsed { 
    width: 80px; 
    padding: 20px 0;
}

.sidebar.collapsed .nav-link span, .sidebar.collapsed h4 span { 
    display: none; 
}

.sidebar.collapsed .nav-link i { 
    font-size: 1.5em;
    margin-right: 0;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px;
}

.main-content.sidebar-collapsed { 
    margin-left: 80px; 
    width: calc(100% - 80px); 
}

/* Modern card design with glass effect */
.card { 
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-header { 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    font-weight: 600;
}

.table { 
    color: #f8f9fa; 
}
/* --- MODERN STAT CARDS WITH GLASS MORPHISM --- */
.stat-card {
    border-radius: 15px;
    color: white;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-info {
    position: relative;
    z-index: 2;
}

.stat-card .stat-info h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.stat-card .stat-info .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card .stat-info .stat-change {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.stat-card .stat-info .stat-change i {
    margin-right: 5px;
}

.stat-card .stat-icon {
    font-size: 3.5rem;
    opacity: 0.7;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Modern Gradient Colors */
.card-gradient-blue {
    background-image: var(--primary-gradient);
}

.card-gradient-green {
    background-image: var(--success-gradient);
}

.card-gradient-yellow {
    background-image: var(--warning-gradient);
}

.card-gradient-purple {
    background-image: var(--primary-gradient-dark);
}

/* Animation for stat numbers */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: countUp 1s ease-out forwards;
}