/* css/style-timer.css */

body {
    /* ... (style body yang sudah ada, hapus/komentari background-color jika menggunakan gambar) ... */
    background-image: url('../image/img.jpg'); /* GANTI DENGAN PATH GAMBAR ANDA */
    background-size: cover; /* Membuat gambar menutupi seluruh area body */
    background-position: center center; /* Posisi gambar di tengah */
    background-repeat: no-repeat; /* Agar gambar tidak diulang */
    background-attachment: fixed; /* Opsional: membuat background tetap saat scroll (efek parallax) */
    
    /* Pastikan warna teks dan elemen lain kontras dengan gambar background */
    color: #ffffff; /* Contoh jika gambar background gelap */
}

/* Anda mungkin ingin menambahkan sedikit overlay transparan agar teks lebih mudah dibaca di atas gambar */
.timer-container, 
.update-form-container {
    /* ... (style container yang sudah ada) ... */
    background-color: rgba(0, 0, 0, 0.5); /* Contoh: overlay hitam semi-transparan */
    /* Atau bisa juga background-color: rgba(255, 255, 255, 0.7); untuk overlay putih semi-transparan jika gambar Anda gelap */
    padding: 30px; /* Tambah padding agar ada jarak dari tepi ke konten */
    border-radius: 10px;
}

/* Sesuaikan warna teks di dalam .timer-container dan .update-form-container agar terbaca di atas overlay */
h1.main-title {
    color: #ffffff;
}
h2.event-date-display {
    color: #f1c40f; /* Contoh: kuning */
}
/* ... dan seterusnya untuk elemen lain ... */


/* assets/css/style.css */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.justify-content-center {
    justify-content: center !important;
}

.col-12, .col-md-6, .col-md-8, .col-lg-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Breakpoints sederhana untuk kolom, sesuaikan jika menggunakan Bootstrap atau framework lain */
@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}
@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
    margin-bottom: 1rem; /* Tambahkan margin bawah untuk card */
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.text-center { text-align: center !important; }

/* Style untuk form di index.php */
.form-input-content .card.login-form {
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}
.form-input-content h4 {
    margin-bottom: 1.5rem;
}
.custom-select {
    display: inline-block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right .75rem center/8px 10px no-repeat;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    appearance: none;
}
.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}
.btn-lg {
    padding: .5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: .3rem;
}
.btn-block {
    display: block;
    width: 100%;
}

.copyright p {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 1.5rem;
}
.copyright a {
    color: #007bff;
    text-decoration: none;
}
.copyright a:hover {
    text-decoration: underline;
}

/* Style untuk pesan error custom di index.php */
.alert-custom-error {
    background-color: #f8d7da; color: #721c24; border-color: #f5c6cb;
    padding: .75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent;
    border-radius: .25rem; text-align: center;
}


.timer-container .card {
    background-color: transparent;
    border: none;
    box-shadow: none; /* Atau sesuaikan shadow */
}
.timer-container .card-body {
    padding: 20px; /* Atau sesuaikan */
}







/* assets/css/style-timer.css */
#timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px; /* Jarak antar elemen hari, jam, menit, detik */
}

#timer-display > div {
    background-color: #e9ecef; /* Warna latar belakang masing-masing kotak */
    color: #343a40; /* Warna teks angka */
    padding: 15px 20px;
    border-radius: 5px;
    text-align: center;
    min-width: 80px; /* Lebar minimum kotak */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#timer-display > div span {
    display: block;
    font-size: 0.75em; /* Ukuran teks "Hari", "Jam", dll. */
    color: #6c757d; /* Warna teks "Hari", "Jam", dll. */
    margin-top: 5px;
}

/* Style untuk judul di timer-container */
.timer-container .main-title {
    font-size: 1.8em; /* Ukuran font judul utama countdown */
    color: #212529;
    margin-bottom: 10px;
}

.timer-container .event-date-display {
    font-size: 1.2em; /* Ukuran font tanggal dan waktu event */
    color: #495057;
    margin-bottom: 20px;
}

#message {
    margin-top: 20px;
    font-weight: bold;
    color: #155724; /* Warna untuk pesan sukses atau info */
    font-size: 1.1em;
}






















.timer-container, 
.update-form-container {
    /* ... (style lain seperti padding, border-radius, box-shadow, max-width, margin-bottom) ... */
    
    /* Membuat background container menjadi hitam dengan 50% transparansi */
    background-color: rgba(0, 0, 0, 0.5); /* R=0, G=0, B=0 (hitam), A=0.5 (50% transparan) */
    
    /* Penting: Pastikan warna teks di dalam container kontras dengan background body yang mungkin terlihat */
    color: #ffffff; /* Contoh: teks putih agar terbaca di atas background body yang gelap atau gambar */
    
    /* Anda mungkin ingin menyesuaikan atau menghapus box-shadow jika transparansi sudah cukup */
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); */ /* Shadow mungkin kurang terlihat/relevan */
    
    /* Anda bisa menambahkan border jika ingin lebih jelas batas containernya */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */ /* Contoh border putih semi-transparan */
}

/* Sesuaikan warna teks untuk elemen-elemen di dalam container */
h1.main-title, 
.update-form-container h2 {
    color: #ffffff; /* Atau warna cerah lainnya */
}

h2.event-date-display {
    color: #f1c40f; /* Contoh: kuning, atau warna cerah lain */
}

/* Untuk kotak timer, Anda bisa membuatnya lebih opak atau juga semi-transparan */
#timer-display div {
    background-color: rgba(255, 255, 255, 0.15); /* Putih dengan 15% opak, masih tembus pandang */
    color: #ffffff;
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
}

#timer-display div span {
    color: #dddddd; /* Warna label sedikit lebih redup */
}

/* Untuk form di dalam container transparan */
.form-group label {
    color: #f0f0f0; /* Warna label cerah */
}

.form-group input[type="date"],
.form-group input[type="number"] {
    background-color: rgba(255, 255, 255, 0.9); /* Background input hampir opak agar mudah diisi */
    color: #333333; /* Teks input gelap */
    border: 1px solid rgba(200, 200, 200, 0.5);
}

button[type="submit"] {
    background-color: #1abc9c; /* Warna tombol yang kontras */
    color: white;
}
button[type="submit"]:hover {
    background-color: #16a085;
}

.feedback-message.success {
    background-color: rgba(40, 167, 69, 0.8); /* Hijau dengan sedikit transparansi */
    color: white;
    /* border: 1px solid rgba(255,255,255,0.3); */
}
.feedback-message.error {
    background-color: rgba(220, 53, 69, 0.8); /* Merah dengan sedikit transparansi */
    color: white;
    /* border: 1px solid rgba(255,255,255,0.3); */
}
.feedback-message.info {
    background-color: rgba(23, 162, 184, 0.8); /* Biru info dengan sedikit transparansi */
    color: white;
    /* border: 1px solid rgba(255,255,255,0.3); */
}


h1.main-title { /* Untuk "Event Will Start In" */
    color: #1a73e8; /* Warna biru yang lebih modern */
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 500;
}

h2.event-date-display { /* Untuk tanggal event yang ditampilkan dari PHP */
    font-size: 1.5em;
    color: #34a853; /* Warna hijau */
    margin-top: 5px;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Styling untuk blok timer (days, hours, minutes, seconds) */
#timer-display {
    display: flex;
    justify-content: center; /* Elemen timer di tengah */
    gap: 12px; /* Jarak antar kotak waktu */
    margin-bottom: 20px;
}

#timer-display div { /* Styling untuk setiap kotak waktu (hari, jam, menit, detik) */
    background-color: #e8f0fe; /* Biru muda lembut */
    color: #1967d2; /* Biru tua untuk angka */
    padding: 12px 15px;
    border-radius: 8px;
    min-width: 70px; /* Lebar minimum agar konsisten */
    font-size: 2em; /* Ukuran angka countdown */
    font-weight: bold;
    display: flex;
    flex-direction: column; /* Angka di atas, label di bawah */
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#timer-display div span { /* Label (Hari, Jam, Menit, Detik) */
    font-size: 0.4em; /* Lebih kecil dari angka */
    font-weight: normal;
    color: #5f6368; /* Abu-abu gelap untuk label */
    margin-top: 4px;
    text-transform: uppercase; /* Kapital semua */
    letter-spacing: 0.5px;
}

/* Pesan dari JavaScript (misal, "WAKTU HABIS!") */
#message {
    margin-top: 20px;
    font-size: 1.5em;
    color: #d93025; /* Merah untuk pesan penting/akhir */
    font-weight: bold;
    min-height: 25px; /* Agar layout tidak loncat saat pesan muncul */
}

/* Styling untuk Form Update */
.update-form-container h2 {
    color: #1a73e8;
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
    text-align: left; /* Label dan input rata kiri dalam form group */
}

.form-group label {
    display: block; /* Label di atas input */
    margin-bottom: 6px;
    font-weight: 500;
    color: #3c4043;
}

.form-group input[type="date"],
.form-group input[type="number"] {
    width: calc(100% - 20px); /* Lebar penuh dikurangi padding */
    padding: 10px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box; /* Agar padding tidak menambah lebar total */
}

.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
    outline: none;
}

button[type="submit"] {
    padding: 12px 25px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
}

button[type="submit"]:hover {
    background-color: #1765c2; /* Warna hover lebih gelap */
}

/* Pesan Feedback dari PHP */
.feedback-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.95em;
    text-align: left;
}

.feedback-message.success {
    background-color: #e6f4ea;
    color: #1e8e3e;
    border: 1px solid #a8d5b3;
}

.feedback-message.error {
    background-color: #fce8e6;
    color: #d93025;
    border: 1px solid #f7c1be;
}
.feedback-message.info {
    background-color: #e8f0fe;
    color: #1967d2;
    border: 1px solid #abc9f7;
}