/* ===== GLOBAL RESET ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #dcdcdc, #9e9e9e);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== CALENDAR CONTAINER (GLASS PREMIUM) ===== */
.calendar {
  max-width: 100%;
  margin:20px auto;
  overflow:visible !important;

  background: linear-gradient(135deg, rgba(139,0,0,0.85), rgba(240,240,240,0.15));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border:1px solid rgba(255,255,255,0.15);
  padding:18px;
  border-radius:25px;

  color:white;

  box-shadow:
    0 10px 40px rgba(0,0,0,0.5),
    inset 0 0 20px rgba(255,255,255,0.05);
}

.calendar:hover {
  box-shadow:
    0 15px 50px rgba(255,0,0,0.25),
    inset 0 0 25px rgba(255,255,255,0.05);
}

/* ===== HEADER ===== */
.header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

/* BULAN */
#monthYear {
  font-size:20px;
  font-weight:600;
  color:#ffffff;
  letter-spacing:1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* BUTTON NAV */
.header button {
  background: rgba(255,255,255,0.15);
  border:none;
  color:white;
  padding:6px 12px;
  border-radius:12px;
  cursor:pointer;
  transition:0.3s;
}

.header button:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

/* ===== GRID ===== */
.days, .dates {
  display:grid;
  grid-template-columns: repeat(7,1fr);
  text-align:center;
}

/* ===== HARI ===== */
.days div {
  font-weight:bold;
  padding:10px 0;
  color:#fff;
}

.days div:nth-child(1) {
  color:#ff3b3b;
}

.days div:nth-child(7) {
  color:#00ff9c;
}

/* ===== TANGGAL ===== */
.dates div {
  padding:10px;
  margin:3px;
  border-radius:12px;
  cursor:pointer;
  transition:0.25s;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

/* HOVER */
.dates div:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* TODAY */
.today {
  background: linear-gradient(135deg, gold, orange);
  color:black;
  font-weight:bold;
}

/* LIBUR */
.holiday {
  background: linear-gradient(135deg, #ff3b3b, #ff0000);
  color:white;
}

/* CUTI */
.cuti {
  background: linear-gradient(135deg, #4da6ff, #0066ff);
}

/* ===== POPUP FINAL ===== */
.popup {
  position: fixed;
  z-index: 999999;
  white-space: nowrap;

  background: linear-gradient(
    135deg,
    rgba(128, 0, 32, 0.6),
    rgba(160, 160, 160, 0.2)
  );

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  padding: 10px 14px;
  border-radius: 12px;

  color: #fff;
  font-size: 13px;

  border:1px solid rgba(255,255,255,0.2);

  box-shadow: 0 0 18px rgba(128, 0, 32, 0.6);

  opacity: 0;
  pointer-events: none;

  transform: translateY(10px) scale(0.95);
  transition: all .2s ease;
}

.popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}