/* Custom Styles for BibleFun.id */
body {
    background-color: #f0f7ff; /* Very soft blue */
    overflow-x: hidden;
}

/* Typography & Colors */
.text-primary { color: #4361ee !important; }
.bg-primary { background-color: #4361ee !important; }
.text-warning { color: #ffca3a !important; }
.bg-warning { background-color: #ffca3a !important; }
.text-danger { color: #ff595e !important; }
.bg-info { background-color: #1982c4 !important; }
.bg-success { background-color: #8ac926 !important; }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    height: 35vh;
    min-height: auto;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.2);
}

.hero-title {
    text-shadow: 4px 4px 0px #4361ee, 6px 6px 0px rgba(189, 248, 40, 0.15);
    letter-spacing: 2px;
}

/* Animations */
.bounce-anim {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.hover-pop {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-pop:hover {
    transform: scale(1.15);
}

/* Elements */
.about-card {
    border-top: 10px solid #4361ee !important;
}

.btn-daftar {
    transition: all 0.3s ease;
    border: 4px solid #ffffff;
}
.btn-daftar:hover {
    background-color: #ffb703 !important;
    transform: scale(1.08) translateY(-5px);
}

.register-banner {
    border: 8px solid rgba(255, 202, 58, 0.6);
}

/* SweetAlert Customizations */
.swal2-popup {
    border-radius: 30px !important;
    padding: 2rem !important;
}
.font-fredoka {
    font-family: 'Fredoka One', cursive !important;
    color: #4361ee !important;
}
.logo-50 {
    width: 50px;
    height: 50px;
    object-fit: contain; /* Memastikan gambar tidak gepeng/distorsi meskipun ukuran aslinya tidak persegi */
    /* border-radius: 50%; (Hapus tanda komentar '/' jika ingin logonya berbentuk bulat sempurna) */
}

/* CUSTOM BUBBLE VALIDATION */
.custom-invalid-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    z-index: 5;
    max-width: 100%;
    padding: 0.4rem 0.8rem;
    margin-top: .2rem;
    font-size: 0.85rem;
    font-weight: 300;
    color: #fff;
    background-color: #fd7e14; /* Warna orange custom, bisa diubah */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: fadeInDown 0.3s ease;
}
.custom-invalid-tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 15px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #fd7e14 transparent; /* Segitiga panah ke atas */
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Tampilkan bubble saat form divalidasi dan inputnya kosong/tidak valid */
.was-validated .form-control:invalid ~ .custom-invalid-tooltip {
    display: block;
}
/* Ubah warna border input yang salah menjadi orange */
.was-validated .form-control:invalid {
    border-color: #fd7e14;
    background-image: none; /* Hilangkan icon X bawaan bootstrap jika tidak mau */
}

/* Animasi Fade Out (Menghilang Perlahan) */
@keyframes fadeOutUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Terapkan animasi saat class hide-tooltips aktif dari JavaScript */
.hide-tooltips .custom-invalid-tooltip {
    animation: fadeOutUp 0.3s ease forwards !important;
}
/* End Validation Bubble Customization */

/* Styling Universal untuk Placeholder Form Input & Textarea */
::placeholder {
    font-size: 0.6rem;     /* Ukuran kecil */
    color: #e5f146;         /* Warna abu-abu tipis */
    font-style: italic;     /* Huruf miring */
    opacity: 0.7;             /* Memastikan konsistensi warna di beberapa browser */
}

/* Kompatibilitas Lintas Browser */
::-webkit-input-placeholder { font-size: 0.7rem; color: #e5f146; font-style: italic; }
::-moz-placeholder { font-size: 0.7rem; color: #e5f146; font-style: italic; opacity: 0.7; }
:-ms-input-placeholder { font-size: 0.7rem; color: #e5f146; font-style: italic; }
:-moz-placeholder { font-size: 0.7rem; color: #e5f146; font-style: italic; opacity: 0.7; }
/* End Styling Universal Placeholder */

/* Mengatur parent container agar posisi absolute anak bekerja */
.position-relative {
    position: relative;
}

/* Styling Bubble Notifikasi Merah */
.buble-notif {
    position: absolute;
    top: -10px;    /* Sedikit keluar ke atas */
    right: -10px;  /* Sedikit keluar ke kanan */
    background-color: #dc3545; /* Warna merah danger Bootstrap */
    color: white;
    font-family: 'Arial', sans-serif; /* Font standar agar angka jelas */
    font-weight: bold;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%; /* Membuat lingkaran sempurna */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Bayangan agar pop-out */
    border: 2px solid white; /* Garis tepi putih agar kontras dengan card */
    z-index: 10; /* Memastikan di atas elemen lain */
}

/* Penyesuaian khusus untuk box misi yang full width */
.buble-notif-misi {
    top: 10px;
    right: 10px;
}

/* Menghilangkan panah atas bawah pada input type number di semua browser */
/* Untuk Chrome, Safari, Edge, dan Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Untuk Mozilla Firefox */
input[type="number"] {
    appearance: textfield;
  -moz-appearance: textfield;
}