/* === DESAIN TAMPILAN PORTAL PENGUMUMAN MODERN === */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f0f2f5;
  background-image: url("img/bg-sekolah.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.container {
  background: rgba(255, 255, 255, 0.96);
  padding: 35px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.logo-sekolah {
  width: 85px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.08));
}

.judul-utama {
  font-size: 20px;
  color: #2c3e50;
  font-weight: 700;
  line-height: 1.25 !important;
  margin-top: 0px !important;
  margin-bottom: 8px !important;
  letter-spacing: 0.2px;
}

.teks-petunjuk {
  font-size: 13.5px;
  color: #576574;
  line-height: 1.45 !important;
  margin-top: 0px !important;
  margin-bottom: 25px !important;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#nisn {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #c8d6e5;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
  text-align: center;
  background-color: #f8f9fa;
  color: #2c3e50;
  font-family: "Poppins", sans-serif;
}

#nisn:focus {
  border-color: #06b6d4;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

#btnCek {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
  font-family: "Poppins", sans-serif;
}

#btnCek:hover {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(6, 182, 212, 0.35);
}

#btnCek:disabled {
  background: #ee5253 !important;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Kotak Hasil Pengumuman Lembut & Nyaman Dibaca (Format Netral) */
#hasil {
  margin-top: 22px;
  padding: 20px;
  border-radius: 12px;
  font-size: 14px;
  animation: cetakMuncul 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cetakMuncul {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tampilan utama hasil data siswa */
#hasil.tampil-data {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  text-align: left; /* Membuat biodata rata kiri agar rapi */
}

#hasil.tampil-data .hasil-salam {
  font-weight: 700;
  color: #1e293b;
  font-size: 15px;
  margin-bottom: 15px !important;
  text-align: center; /* Judul kecil tetap di tengah */
}

#hasil.tidak-ditemukan {
  background-color: #fff5f5;
  border: 1px solid #ff8787;
  color: #842029;
  text-align: center;
}

/* Gaya Tabel Biodata Siswa */
.tabel-biodata-siswa {
  width: 100%;
  margin-bottom: 18px;
  font-size: 13.5px;
  border-collapse: collapse;
}
.tabel-biodata-siswa td {
  padding: 4px 0;
  vertical-align: top;
}
.tabel-biodata-siswa td:nth-child(1) {
  width: 42%;
  color: #64748b;
}
.tabel-biodata-siswa td:nth-child(2) {
  width: 5%;
  color: #64748b;
}
.tabel-biodata-siswa td:nth-child(3) {
  width: 53%;
  color: #1e293b;
}

/* TABEL NILAI TKA GAYA NETRAL */
.tabel-nilai-tka {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  text-align: left;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.tabel-nilai-tka th,
.tabel-nilai-tka td {
  padding: 10px 14px;
}
.tabel-nilai-tka th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  background: #f1f5f9;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}
.tabel-nilai-tka td {
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.tabel-nilai-tka tr:last-child td {
  border-bottom: none;
}
.tabel-nilai-tka .skor-angka {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

/* COUNTDOWN TIMER */
.countdown-container {
  margin-top: 25px;
  animation: cetakMuncul 0.5s ease forwards;
  padding-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}
.teks-tutup {
  color: #e67e22;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px !important;
  margin-top: 0 !important;
}
.teks-tunggu {
  color: #7f8c8d;
  font-size: 13px;
  margin-bottom: 20px !important;
}
#countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.waktu-box {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  padding: 10px 4px;
  border-radius: 10px;
  flex: 1;
  max-width: 72px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.15);
}
.waktu-box span {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.waktu-box small {
  font-size: 10px;
  color: #ffffff;
  opacity: 0.85;
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* TOMBOL MUSIK */
#btn-musik {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: "Poppins", sans-serif;
}
#btn-musik:hover {
  background: rgba(40, 40, 40, 0.85);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
