/* ===================================================================
   1. General & Theme Styles
   =================================================================== */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212 !important; /* Warna dasar dark-mode */
    color: #e0e0e0; /* Warna teks dasar yang tidak terlalu kontras */
}

/* Custom class untuk card dan elemen sekunder */
.bg-secondary-dark {
    background-color: #1e1e1e !important;
    border: 1px solid #383838;
    border-radius: 15px;
}

/* Garis pemisah */
hr {
    border-color: #383838;
}

/* ===================================================================
   2. Header & Logo
   =================================================================== */

.logo {
    max-width: 150px;
    height: auto;
}

header h1 {
    font-weight: 700;
    color: #ffffff;
}

header .lead {
    color: #b0b0b0;
}


/* ===================================================================
   3. Main Content & Form
   =================================================================== */

.form-label {
    color: #e0e0e0; /* Memastikan label terlihat di background gelap */
}

.form-control {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #ffffff;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background-color: #2a2a2a;
    border-color: #0d6efd; /* Warna biru primer Bootstrap */
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

.form-control::placeholder {
    color: #888;
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    font-weight: 600;
    padding: 0.75rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-light {
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* ===================================================================
   4. Prize List
   =================================================================== */

#daftar-hadiah .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#daftar-hadiah .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

#daftar-hadiah .card-img-top {
    aspect-ratio: 16 / 9; /* Menjaga rasio gambar */
    object-fit: cover;
}

#daftar-hadiah .card-title {
    font-weight: 600;
    color: #ffffff;
}

#daftar-hadiah .card-text {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Style khusus untuk badge persentase */
#daftar-hadiah .badge {
    font-size: 0.9rem;
    font-weight: 600;
}


/* ===================================================================
   5. Modal & Animations
   =================================================================== */

/* Pastikan modal juga mengikuti tema gelap */
.modal-content {
    background-color: #1e1e1e !important;
    border: 1px solid #383838;
}

.modal-header {
    border-bottom: 1px solid #383838;
}

.modal-footer {
    border-top: 1px solid #383838;
}

/* Animasi goyang untuk mystery box */
#mystery-box-img.shake {
    animation: shake 0.8s cubic-bezier(.36,.07,.19,.97) both;
    animation-iteration-count: infinite;
}

@keyframes shake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  10%, 30%, 50%, 70%, 90% { transform: translate3d(-5px, 0, 0); }
  20%, 40%, 60%, 80% { transform: translate3d(5px, 0, 0); }
}

/* ===================================================================
   6. Prize List Modal Styles
   =================================================================== */

.hadiah-modal-list .list-group-item {
    background-color: transparent;
    border-color: #383838;
    color: #e0e0e0;
    padding: 1rem;
}

.hadiah-modal-list img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.hadiah-modal-list h6 {
    font-weight: 600;
    color: #fff;
}

.hadiah-modal-list p {
    color: #fff;
}

.hadiah-modal-list .badge {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5em 0.8em;
}