/* =========================================
   IMPORT FONT & GLOBAL STYLES 
   ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Fredoka", sans-serif;
  text-align: left;
  /* Gradasi pastel lembut tanpa polkadot */
  background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
  background-attachment: fixed;
  color: #1e293b;
  margin: 0;
  padding: 30px 20px;
  line-height: 1.6;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

h1 {
  color: #1e3a8a;
  margin-bottom: 25px;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
}

/* Khusus untuk halaman Slide PPT penuh */
body.slide-page {
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #cbd5e1;
  text-align: left;
}

/* =========================================
   TOMBOL & MENU (Gaya Kartun / Membal)
   ========================================= */
.menu-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 450px;
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  max-width: 850px;
  margin: 0 auto 20px auto;
}

/* Tombol Default (Biru Pastel) */
.btn {
  display: block;
  padding: 14px 22px;
  background-color: #38bdf8;
  color: #0f172a;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  border: 3px solid #ffffff;
  box-shadow:
    0 5px 0px #0284c7,
    0 8px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover {
  transform: translateY(-3px);
  background-color: #0284c7;
  color: #ffffff;
  box-shadow:
    0 8px 0px #0369a1,
    0 12px 20px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0px #0369a1;
}

/* Variasi Warna Tombol */
.btn-green {
  background-color: #4ade80;
  box-shadow:
    0 5px 0px #16a34a,
    0 8px 15px rgba(0, 0, 0, 0.08);
}
.btn-green:hover {
  background-color: #16a34a;
  color: #ffffff;
  box-shadow:
    0 8px 0px #15803d,
    0 12px 20px rgba(0, 0, 0, 0.12);
}

.btn-orange {
  background-color: #fb923c;
  box-shadow:
    0 5px 0px #ea580c,
    0 8px 15px rgba(0, 0, 0, 0.08);
}
.btn-orange:hover {
  background-color: #ea580c;
  color: #ffffff;
  box-shadow:
    0 8px 0px #c2410c,
    0 12px 20px rgba(0, 0, 0, 0.12);
}

/* Tombol Non-Aktif (Segera Hadir) */
.btn-disabled {
  background-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 0px #cbd5e1;
}

/* Tombol Kembali (Bawah / Header) */
.btn-back {
  display: inline-block;
  padding: 10px 22px;
  background-color: #ffffff;
  color: #1e293b;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  border: 3px solid #ffffff;
  box-shadow:
    0 5px 0px #cbd5e1,
    0 8px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.btn-back:hover {
  transform: translateY(-3px);
  background-color: #0f172a;
  color: #ffffff;
  box-shadow:
    0 8px 0px #334155,
    0 12px 20px rgba(0, 0, 0, 0.1);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Badge Ekstensi File */
.ext-badge {
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 3px 10px;
  border-radius: 8px;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.9em;
  border: 2px solid #cbd5e1;
}

/* =========================================
   LAYOUT CATATAN CORNELL (Bersih & Fokus)
   ========================================= */
.cornell-wrapper {
  text-align: left;
}

.cornell-container {
  max-width: 850px;
  margin: 0 auto;
  /* Tetap putih bersih agar siswa fokus membaca */
  background: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 12px 0px #bbf7d0,
    0 20px 30px rgba(0, 0, 0, 0.08);
}

.cornell-row {
  display: flex;
  border-bottom: 2px solid #f1f5f9;
}

.cornell-left {
  width: 35%;
  background-color: #f8fafc;
  padding: 22px;
  border-right: 2px solid #e2e8f0;
  font-weight: 700;
  color: #1e3a8a;
  font-size: 1.05rem;
}

.cornell-right {
  width: 65%;
  padding: 22px;
  background-color: #ffffff;
  color: #334155;
}

.cornell-bottom {
  background-color: #fef9c3; /* Kuning pastel lembut untuk area kesimpulan */
  padding: 22px;
  border-top: 3px dashed #fde047;
}

.cornell-bottom h3 {
  margin-top: 0;
  color: #854d0e;
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.cornell-bottom p {
  margin: 0;
  font-weight: 600;
  color: #713f12;
  font-size: 1rem;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* =========================================
   LAYOUT HEADER & SLIDE PPT
   ========================================= */
.slide-header {
  background-color: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.slide-header .btn-back {
  margin-top: 0;
  margin-right: 20px;
}

.slide-header h1 {
  color: #0f172a;
  font-size: 1.3rem;
  margin: 0;
  text-align: left;
}

.slide-container {
  flex-grow: 1;
  width: 100%;
}

.slide-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================
   RESPONSIF UNTUK LAYAR HP
   ========================================= */
@media (max-width: 600px) {
  body {
    padding: 20px 12px;
  }

  .cornell-row {
    flex-direction: column;
  }

  .cornell-left {
    width: 100%;
    border-right: none;
    border-bottom: 2px dashed #cbd5e1;
    padding-bottom: 12px;
  }

  .cornell-right {
    width: 100%;
    box-sizing: border-box;
  }

  .slide-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
