:root {
  --bg: #f4fbff;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #0f62fe;
  --active-row: #fff8e6;
  --radius: 14px;
  --shadow-1: 0 6px 18px rgba(12, 22, 45, 0.08);
  --shadow-2: 0 10px 30px rgba(12, 22, 45, 0.06);
}

html, body {
  background: var(--bg);
  color: #0f172a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

main { flex: 1; }

/* ===============================
   HERO SECTION
================================= */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #e3f2ff, #fff8f0);
}

.hero h1 {
  font-size: 2rem;
  color: #0b5394;
  margin-bottom: 10px;
}

.hero p {
  color: #555;
  max-width: 500px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ===============================
   APP LAYOUT
================================= */
.app {
  width: 100%;
  margin: 0 auto;
  padding: 15px;
}

.app-header {
  text-align: center;
  padding: 20px 0;
}

.big-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

/* ===============================
   BUTTON STYLE (CLASS SELECT)
================================= */
.class-btn {
  background: #f8faff;
  border: 1.5px solid rgba(15, 98, 254, 0.15);
  color: #0f62fe;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.class-btn:hover {
  background: #e8f0ff;
  transform: translateY(-2px);
}

.class-btn.active {
  background: #0f62fe;
  color: #fff !important;
  border-color: #0f62fe;
  box-shadow: 0 3px 8px rgba(15, 98, 254, 0.25);
  transform: scale(1.05);
}

.class-btn.tjkt { background: #e3f2fd; color: #0d47a1; border: 2px solid #1565c0; }
.class-btn.to { background: #ffebee; color: #b71c1c; border: 2px solid #c62828; }
.class-btn.farmasi { background: #fffde7; color: #f57f17; border: 2px solid #f9a825; }
.class-btn.aphp { background: #e8f5e9; color: #1b5e20; border: 2px solid #2e7d32; }

.class-btn.tjkt.active { background: #1565c0; border-color: #1565c0; }
.class-btn.to.active { background: #c62828; border-color: #c62828; }
.class-btn.farmasi.active { background: #f9a825; border-color: #f9a825; }
.class-btn.aphp.active { background: #2e7d32; border-color: #2e7d32; }

/* ===============================
   MAIN CONTENT
================================= */
.main {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  align-items: flex-start;
}

.days-rail {
  width: 180px;
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 280px;
  padding-top: 80px;
}

.day-pill {
  padding: 12px 14px;
  border-radius: 5px;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(12, 22, 45, 0.04);
  cursor: pointer;
  border: 1px solid rgba(12, 22, 45, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s ease;
}

.day-pill:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-2);
}

.day-pill.today {
  background: linear-gradient(90deg, #e6fff7, #f3fff8);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.day-name { font-weight: 800; font-size: 1rem; }
.day-sub { font-size: 0.78rem; color: var(--muted); }

.content { flex: 1; min-width: 0; }

.status {
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(12, 22, 45, 0.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 36px;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}

.days-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0;
}

/* ===============================
   DAY CARD
================================= */
.day-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(12, 22, 45, 0.04);
  box-shadow: var(--shadow-1);
  transform: translateY(8px);
  opacity: 0;
  animation: fadeUp 0.5s forwards cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes fadeUp {
  to { transform: none; opacity: 1; }
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(15, 98, 254, 0.06), rgba(255, 255, 255, 0));
}

.day-title { font-size: 1.15rem; font-weight: 800; }
.day-meta { font-size: 0.86rem; color: var(--muted); }

.horizontal-scroll {
  width: 100%;
  overflow-x: auto;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}

.table {
  border-collapse: collapse;
  width: max-content;
  min-width: 650px;
}

.table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.87rem;
}

.table tbody tr {
  border-top: 1px solid rgba(12, 22, 45, 0.04);
  transition: background 220ms ease, transform 200ms ease;
}

.table tbody tr:hover {
  background: rgba(15, 98, 254, 0.03);
  transform: translateX(2px);
}

.table td {
  padding: 12px 16px;
  white-space: nowrap;
}

.table tbody tr.active {
  background: var(--active-row);
  border-left: 4px solid #f59e0b;
  border-right: 4px solid #f59e0b;
  font-weight: 700;
}

.custom-slot {
  background: #e0f2fe;
  border-left: 4px solid #3b82f6;
  border-right: 4px solid #3b82f6;
  font-weight: 600;
  color: #1e3a8a;
}

.copy-today-card {
  background: linear-gradient(135deg, #e8f5e9, #ffffff);
  border-left: 5px solid #00c853;
}

/* ===============================
   GLOBAL CTA SECTION
================================= */
.global-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 80px auto;
  padding: 2rem;
}

@media (min-width: 768px) {
  .global-cta {
    flex-direction: row;
    justify-content: center;
  }
}

.cta-card {
  background: #fff;
  text-align: center;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 400px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 360px;
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.cta-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: #222;
}

.cta-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.cta-btn {
  display: inline-block;
  background: #0f62fe;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover { background: #0043ce; transform: translateY(-2px); }
.cta-btn.whatsapp { background: #01c853; }
.cta-btn.whatsapp:hover { background: #1ebe57; }
.cta-btn.donate { background: #ff7b00; }
.cta-btn.donate:hover { background: #e46d00; }

/* ===============================
   FOOTER
================================= */

#footer {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  padding: 25px 10px;
  margin-top: 30px;
  background: #ffffff;
  border-top: 1px solid #eee;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 0 0.6rem;
  white-space: nowrap;
}

.footer-links a:hover {
  color: #000;
  text-decoration: underline;
}

.footer-links a:not(:last-child)::after {
  content: "|";
  color: #ccc;
  margin-left: 0.8rem;
  font-weight: normal;
}

.doc-btn {
  background: #f8faff;
  border: 1.5px solid rgba(15, 98, 254, 0.15);
  color: #0f62fe;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.doc-btn:hover {
  background: #e8f0ff;
  transform: translateY(-2px);
}

.doc-btn.active {
  background: #0f62fe;
  color: #fff;
  border-color: #0f62fe;
  box-shadow: 0 3px 8px rgba(15, 98, 254, 0.25);
  transform: scale(1.05);
}

/* ===============================
   GENERIC CONTENT (About, Privacy, etc)
================================= */
.contentt {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px;
  line-height: 1.8;
  color: #333;
  font-size: 1rem;
}

.doksli-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.doksli-images img {
  width: 45%;
  max-width: 380px;
  border-radius: 12px;
  border: 1.5px solid rgba(15, 98, 254, 0.12);
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.08);
}

.contact-info {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 25px 0;
}

.update-info {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* ===============================
   404 PAGE
================================= */
.notfound {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fafafa, #f0f0f0);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #333;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.notfound-title {
  font-size: 8rem;
  font-weight: 700;
  letter-spacing: -2px;
}

.notfound-text {
  font-size: 1.2rem;
  margin-top: 10px;
  margin-bottom: 25px;
  color: #555;
}

.notfound-img {
  width: 280px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.notfound-btn {
  display: inline-block;
  color: #555;
  border: 1px solid #ccc;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

.notfound-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #bbb;
  color: #222;
}

@media (max-width: 768px) {
  html, body { font-size: 15px; }
  .app { padding: 10px; }
  .app-header { padding: 14px; }
  .main { flex-direction: column; gap: 10px; }
  .days-rail { display: none; }
  .content { width: 100%; }
  .table { min-width: 600px; }
  .doksli-images img { width: 90%; }
}