/* File: css/main-custom.css */

/* ==========================================================================
   1. PENGATURAN DASAR HALAMAN & WRAPPER
   ========================================================================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    /* Pola SVG Kustom: Aksen Gelombang Lembut di Sudut Atas */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1440 800'%3E%3Cpath fill='%23e0f2fe' fill-opacity='0.4' d='M0,96L120,112C240,128,480,160,720,149.3C960,139,1200,85,1320,58.7L1440,32L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z'%3E%3Cpath%3E%3Cpath fill='%23dbeafe' fill-opacity='0.3' d='M0,192L120,186.7C240,181,480,171,720,144C960,117,1200,75,1320,53.3L1440,32L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z'%3E%3Cpath%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
    color: #334155;
    padding-top: 75px; /* Jarak aman agar konten tidak tertutup navbar */
}

.main-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 15px;
}

/* ==========================================================================
   2. NAVBAR MODERN (GLASSMORPHISM)
   ========================================================================== */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.navbar-custom .nav-link {
    color: #1e3a8a !important; /* Deep Blue */
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px !important;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: #0284c7 !important; /* Sky Blue */
    background-color: rgba(2, 132, 199, 0.05);
}

/* ==========================================================================
   3. KOMPONEN BERANDA & WELCOME TEXT
   ========================================================================== */
.welcome-title h3 {
    color: #1e3a8a;
    font-weight: 700;
}

.welcome-title h4 {
    color: #475569;
    font-weight: 500;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.countdown-box {
    background: linear-gradient(135deg, #1e3a8a, #0284c7);
    color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

/* ==========================================================================
   4. OPTIMASI CAROUSEL PREMIUM (PROPORSIONAL & ANTI-GEPENG)
   ========================================================================== */
.carousel-modern-container {
    border-radius: 14px; 
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

.carousel-modern .carousel-item {
    height: 280px; /* Tinggi proporsional ideal untuk Desktop agar foto tidak kosong */
    background-color: #0f172a;
}

.carousel-modern .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memotong gambar secara cerdas tanpa merusak rasio asli */
    object-position: center top; /* Menjaga fokus tetap pada area wajah siswa */
}

/* Overlay Bayangan Lembut Sinematik (Menggantikan Balok Gelap Pekat) */
.carousel-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Wadah Kapsul Teks Mengambang Premium (Glassmorphism) */
.carousel-caption-premium {
    position: absolute;
    right: 15%;
    bottom: 25px;
    left: 15%;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.carousel-caption-premium h6 {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modifikasi Indikator Dot Bulat Minimalis */
.carousel-indicators-modern [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators-modern .active {
    width: 20px;
    border-radius: 4px;
    background-color: #ffffff;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (BREAKPOINT LAYAR HP)
   ========================================================================== */
@media (max-width: 768px) {
    .carousel-modern .carousel-item {
        height: 170px; /* Mengecil secara proporsional di layar handphone */
    }
    .carousel-caption-premium {
        bottom: 15px;
    }
    .carousel-caption-premium h6 {
        font-size: 11px;
        padding: 5px 12px;
    }
    body {
        padding-top: 85px;
    }
}