/* ================= RESET & VARIABEL ================= */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
:root {
  --text-main: #1e293b;
  --text-muted: #64748b;
  --accent-blue: #b700ff;
  --accent-green: #16a34a;

  --glass-bg: rgba(255, 255, 255, 0.65); 
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow: rgb(0 0 0 / 86%);
}

body { 
  color: var(--text-main); 
  min-height: 100vh; 
  display: flex; 
  justify-content: center; 
  padding: 80px 20px 40px;

  background-image: url('https://the.splg.site/images/2026/11/03/gh.webp');
  background-size: 50%; 
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #f8fafc;
  
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(255, 255, 255, 0.7); 
  z-index: -2;
  pointer-events: none;
}

.time-widget {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: right;
  z-index: 100;
}
.time-widget .clock {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.time-widget .date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

#effectCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: -1; 
}

.container { width: 100%; max-width: 1250px; z-index: 1; }

.header { 
  text-align: center; 
  margin-bottom: 30px; 
  padding: 20px; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-logo {
  max-width: 180px; 
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15)); 
}

.header h1 { 
  font-size: 32px; 
  font-weight: 800; 
  letter-spacing: 1px; 
  margin-bottom: 10px; 
  color: #0f172a; 
  text-shadow: 0 2px 10px rgba(255,255,255,0.9); 
}
.header p { 
  font-size: 14px; 
  color: var(--text-muted); 
  font-weight: 600; 
}

.calendar-header { 
  display: flex; justify-content: space-between; align-items: center; 
  margin-bottom: 25px; padding: 15px 25px; border-radius: 16px; 
  background: var(--glass-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); box-shadow: 0 4px 30px var(--shadow);
}
.calendar-header h2 { font-size: 22px; font-weight: 700; color: #0f172a; }

.btn-group button { 
  background: #ffffff; color: var(--text-main); 
  border: 1px solid #cbd5e1; padding: 10px 18px; 
  border-radius: 8px; cursor: pointer; margin-left: 8px; 
  transition: 0.3s; font-weight: 600; box-shadow: 0 2px 5px var(--shadow);
}
.btn-group button:hover { 
  background: #f8fafc; border-color: var(--accent-blue);
  color: var(--accent-blue); box-shadow: 0 4px 10px rgba(183, 0, 255, 0.2); 
  transform: translateY(-2px); 
}

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 15px; }

.day-header { 
  text-align: center; font-weight: 700; padding: 12px 0; 
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--glass-border); 
  border-radius: 10px; color: var(--accent-blue); font-size: 13px; 
  text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 2px 5px var(--shadow);
}

.date-box { 
  background: var(--glass-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: 16px; 
  padding: 15px; min-height: 230px; display: flex; flex-direction: column; 
  transition: all 0.4s ease; box-shadow: 0 8px 32px var(--shadow);
  position: relative; overflow: hidden;
}

.date-box::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg); transition: 0.7s;
}
.date-box:hover::before { left: 200%; }
.date-box:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
  border-color: #fff;
  background: rgba(255, 255, 255, 0.85);
}

.date-box.empty { background: transparent; border: 1px dashed #cbd5e1; box-shadow: none; }

.date-box.full-booked { 
  border-color: rgba(22, 163, 74, 0.5); 
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.15); 
  background: rgba(240, 253, 244, 0.75); 
}

.date-header-wrapper { 
  display: flex; justify-content: space-between; align-items: center; 
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.date-number { font-weight: 800; font-size: 15px; color: #0f172a; }

.full-badge { 
  font-size: 10px; font-weight: 800; color: var(--accent-green); 
  background: rgba(22, 163, 74, 0.1); padding: 4px 8px; 
  border-radius: 6px; border: 1px solid rgba(22, 163, 74, 0.3); 
}

.slot-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.slot-table th { 
  font-size: 10px; color: var(--text-muted); font-weight: 800; 
  text-transform: uppercase; padding-bottom: 8px; text-align: left; 
}
.slot-table th.text-right { text-align: right; }

.slot-table td { 
  padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,0.1); 
  color: var(--text-main); font-weight: 600;
}
.slot-table td:last-child { border-bottom: none; text-align: right; color: var(--accent-blue); font-weight: 800; }

.slot-table .empty-slot td { color: #94a3b8; font-weight: 400; }
.slot-table .empty-slot td:last-child { font-weight: 400; }

.footer-info { 
  text-align: center; margin-top: 40px; font-size: 12px; color: var(--text-muted); 
  padding: 20px; border-top: 1px solid rgba(0,0,0,0.1); 
  backdrop-filter: blur(5px); border-radius: 10px; font-weight: 600;
}

.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: 0.3s;
  animation: pulseWa 2s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  background-color: #20b858;
  color: white;
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-back {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--shadow);
  z-index: 999;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: #ffffff;
  color: var(--accent-blue);
  transform: translateX(-3px);
  box-shadow: 0 6px 20px rgba(183, 0, 255, 0.2);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) { 
  .calendar-grid { grid-template-columns: repeat(5, 1fr); } 
}

@media (max-width: 800px) { 
  .calendar-grid { grid-template-columns: repeat(4, 1fr); } 
}

@media (max-width: 550px) { 
  /* --- PERUBAHAN DI SINI (Sembunyikan Header Hari) --- */
  .day-header {
    display: none;
  }

   .calendar-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px; 
    /* Tambahkan baris ini agar kalender tetap rata kiri meski kotak kosong dihapus */
    justify-content: center; 
  } 

  body { 
    padding: 70px 10px 30px; 
    background-size: 100%; 
  }
  
  .calendar-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px; 
  } 
  
  .date-box {
    min-height: 160px; 
    padding: 10px;
  }

  .header-logo { max-width: 120px; }
  .header h1 { font-size: 20px; }
  .header p { font-size: 12px; }
  
  .calendar-header { 
    flex-direction: column; 
    gap: 15px; 
    padding: 15px; 
    text-align: center;
  }
  .calendar-header h2 { font-size: 18px; }
  
  .btn-group { 
    display: flex; 
    width: 100%; 
    justify-content: space-between; 
  }
  .btn-group button { 
    margin: 0; 
    flex: 1; 
    padding: 8px 10px; 
    font-size: 12px;
  }
  .btn-group button:first-child { margin-right: 5px; }
  .btn-group button:last-child { margin-left: 5px; }

  .time-widget { 
    padding: 8px 12px; 
    top: 10px; 
    right: 10px; 
  }
  .time-widget .clock { font-size: 16px; }
  .time-widget .date { font-size: 10px; }

  .date-number { font-size: 13px; }
  .slot-table th, .slot-table td { font-size: 10px; padding: 5px 0; }

  .wa-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .btn-back {
    padding: 8px 12px;
    font-size: 12px;
    top: 10px;
    left: 10px;
  }
}