/* ================================
   IMPORT FONT & BOOTSTRAP
================================ */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;500;600;700&family=Poppins:wght@400;600&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');

/* ================================
   STYLE UMUM
================================ */
body {
  background-color: #39a6dd;
  background-image: linear-gradient(180deg, #44bffd 0%, #90fb8f 100%);
  min-height: 100vh;
  font-family: "Comic Neue", "Poppins", sans-serif;
  position: relative;
  overflow-x: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

h1 {
  color: #ff914d;
  font-size: 2.4rem;
  text-shadow: 2px 2px 0 #fff;
  margin-bottom: 20px;
}

p {
  color: #000;
  font-size: 1.05rem;
  text-shadow: 1px 1px 0 #4a8bdf;
  margin: 0 auto 35px auto;
  max-width: 320px;
}

/* ================================
   KONTEN LANDING PAGE
================================ */
.content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 25px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 40px 25px;
  margin: auto;
  width: 90%;
  max-width: 380px;
}

/* ================================
   TOMBOL (BUTTONS)
================================ */
.btn-start {
  background-color: #ffcc00;
  color: #333;
  font-weight: bold;
  font-size: 1.4rem;
  padding: 18px 40px;
  border: none;
  border-radius: 35px;
  box-shadow: 0 6px 0 #d4a200;
  transition: 0.2s;
}

.btn-start:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 0 #c49300;
}

.btn-primary {
  background-color: #ffcc00;
  color: #333;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: 25px;
  box-shadow: 0 5px 0 #d4a200;
  transition: 0.2s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 #c49300;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: 25px;
  box-shadow: 0 5px 0 #565e64;
  transition: 0.2s;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 #4a5056;
}

/* ================================
   FOOTER
================================ */
footer {
  text-align: center;
  color: #000000;
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 20px 0;
}

/* ================================
   HALAMAN LOGIN
================================ */
.login-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.297);
  backdrop-filter: blur(6px);
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.536);
  padding: 40px 30px;
  width: 90%;
  max-width: 360px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card h4 {
  color: #ff914d;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 0 #fff;
}

.login-card label {
  font-weight: 600;
  color: #333;
}

.login-card input.form-control {
  border-radius: 15px;
  padding: 12px;
}

.alert {
  font-size: 0.9rem;
  border-radius: 10px;
}

/* ================================
   DASHBOARD
================================ */
body.dashboard {
  padding-top: 80px;
}

.navbar-zokids {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffde59;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-zokids .brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-zokids h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff7b00;
  margin: 0;
  text-shadow: 1px 1px #fff;
}

.navbar-zokids .btn-logout {
  background: #ff6868;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 0 #c94d4d;
  transition: 0.2s;
}

.navbar-zokids .btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #b53b3b;
}

/* Dashboard Container */
.dashboard-container {
  position: relative;
  z-index: 2;
  padding: 20px 15px 100px;
}

.dashboard-container h4 {
  color: #ff914d;
  font-weight: 700;
  text-shadow: 1px 1px 0 #fff;
}

.dashboard-container p {
  color: #333;
  font-weight: 600;
  margin-bottom: 25px;
}

/* Kartu Kategori */
.kategori-card {
  border-radius: 25px;
  padding: 20px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  transition: 0.3s;
  cursor: pointer;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.kategori-card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.35);
}

.kategori-card img {
  max-width: 115px;
  max-height: 115px;
  margin-bottom: 10px;
}

.kategori-card span {
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 1.1rem;
}

/* ================================
   DASHBOARD ADMIN
================================ */
.admin-menu {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.menu-rect {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  transition: 0.3s;
}

.menu-rect i {
  font-size: 1.8rem;
}

.menu-rect h5 {
  margin: 0;
  font-size: 1.1rem;
}

.menu-rect:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* ================================
   HALAMAN BELAJAR
================================ */
body.belajar {
  background-image: linear-gradient(180deg, #8fd3f4 0%, #84fab0 100%);
  min-height: 100vh;
  font-family: "Comic Neue", "Poppins", sans-serif;
  overflow-x: hidden;
  padding-top: 120px;
}

.container-belajar {
  margin-top: 100px;
  margin-bottom: 40px;
}

.carousel-item {
  text-align: center;
}

.materi-img {
  max-height: 450px;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

h2 {
  color: #ff7b00;
  font-weight: 700;
  text-shadow: 1px 1px #fff;
  margin-top: 20px;
}

.btn-audio {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px auto;
  transition: 0.3s;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-audio:hover {
  transform: scale(1.1);
}

/* Footer khusus halaman belajar */
body.belajar footer {
  color: #000;
  font-size: 0.8rem;
  margin-top: 20px;
}

form select.form-select-sm {
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-weight: 600;
  transition: 0.2s;
}

form select.form-select-sm:hover {
  transform: scale(1.03);
  box-shadow: 0 0 6px rgba(255, 204, 0, 0.7);
}
