/* ==========================================================================
   CSS GLOBAL & LAYOUT UTAMA WEBSITE SEEDS STARS MONTESSORI
   ========================================================================== */

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #f8fafc;
    color: #334155;
    overflow-x: hidden;
}

/* ==========================================================================
   1. STYLING NAVBAR & EFEK KACA (SCROLL)
   ========================================================================== */
.custom-navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Kondisi saat halaman di-scroll ke bawah (Glassmorphism Transparan) */
.custom-navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* ==========================================================================
   2. LINK MENU & WARNA ORANGE (ACTIVE / HOVER)
   ========================================================================== */
.custom-navbar .nav-link,
.custom-navbar .dropdown-toggle {
    color: #334155 !important; /* Warna Slate gelap untuk teks awal */
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    position: relative; /* Wajib untuk animasi garis bawah */
}

/* Warna Orange menyala saat Hover dan Aktif */
.custom-navbar .nav-link:hover,
.custom-navbar .dropdown-toggle:hover,
.custom-navbar .nav-link.active,
.custom-navbar .dropdown-toggle.active {
    color: #f97316 !important;
    background-color: rgba(249, 115, 22, 0.05);
}

/* Animasi Garis Bawah (Underline) di Desktop */
.custom-navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #f97316;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Munculkan garis jika dihover atau menu sedang aktif */
.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
    width: 60%;
}

/* ==========================================================================
   3. DROPDOWN MENU PREMIUM
   ========================================================================== */
@media (min-width: 992px) {
    .custom-navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
        border-radius: 14px !important;
        padding: 0.75rem !important;
        min-width: 220px;
        background-color: rgba(255, 255, 255, 0.98) !important;
    }

    .custom-navbar .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.custom-navbar .dropdown-item {
    padding: 0.6rem 1rem !important;
    border-radius: 8px !important;
    color: #475569 !important;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* Dropdown berubah Orange dan geser tipis saat di-hover/aktif */
.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus,
.custom-navbar .dropdown-item:active,
.custom-navbar .dropdown-item.active {
    background-color: #f97316 !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

/* ==========================================================================
   4. KOMPONEN LAINNYA (TOMBOL DAFTAR OFF, SEPARATOR)
   ========================================================================== */
.btn-register-disabled {
    background-color: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
}

.navbar-vr {
    border-left: 2px solid #e2e8f0;
    height: 24px;
}

/* ==========================================================================
   5. RESPONSIVITAS MOBILE & BURGER MENU
   ========================================================================== */
/* Perbaikan icon burger agar berwarna gelap (Slate) supaya terlihat jelas */
.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2851, 65, 85, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hilangkan outline kotak biru bawaan Bootstrap saat burger diklik */
.custom-navbar .navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

@media (max-width: 991.98px) {
    /* Munculkan menu mobile sebagai kartu melayang */
    .custom-navbar .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.99);
        border-radius: 14px;
        padding: 1.5rem;
        margin-top: 12px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
    }

    /* Matikan animasi garis bawah di HP agar rapi */
    .custom-navbar .nav-link::after {
        display: none;
    }

    /* Indikator halaman aktif di HP pindah ke garis kiri tebal (Orange) */
    .custom-navbar .nav-link.active {
        border-left: 4px solid #f97316;
        padding-left: 1rem !important;
        background-color: rgba(249, 115, 22, 0.05);
    }
}
