/* ================= SCHEDULE NEW ================= */

.schedule-title{
    margin-bottom:24px;
}

.schedule-title h2{
    font-size:var(--title);
    font-weight:700;
    color:#fff;
}

.schedule-loading{
    min-height:420px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:14px;
    color:#6b7280;
    font-weight:600;
}

.loading-spinner{
    width:30px;
    height:30px;
    border:3px solid #d9e6e3;
    border-top-color:#91d3ca;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

.schedule-title-main{
  text-align:center;
  font-size:34px;
  font-weight:800;
  color:white;
  letter-spacing:3px;
  margin-bottom:0px;
}
  
.calendar-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    margin-bottom:20px;
}

.calendar-nav button{
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#fff;
    color:#4d8b7f;
    font-size:24px;
    font-weight:bold;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    justify-content:center;
}

#month-title{
    font-size:24px;
    font-weight:800;
    color:#2c7b6e;
    letter-spacing:1px;
    text-align:center;
    line-height:1;
}

/* CALENDAR */
.calendar-card{
  position:relative;
  background:#fff;
  border-radius:0 0 26px 26px;
  padding:28px 20px 24px;
  box-shadow:0 10px 35px rgba(0,0,0,.08);
  margin-bottom:20px;
  margin-top:20px;
}

/* spiral paper top */
.calendar-card::before{
  content:"";
  position:absolute;
  top:-18px;
  left:0;
  width:100%;
  height:40px;
  background:
radial-gradient(circle at 15px 20px,#91d3ca 4px,transparent 5px),
radial-gradient(circle at 55px 20px,#91d3ca 4px,transparent 5px),
radial-gradient(circle at 95px 20px,#91d3ca 4px,transparent 5px),
radial-gradient(circle at 125px 20px,#91d3ca 4px,transparent 5px),
radial-gradient(circle at 165px 20px,#91d3ca 4px,transparent 5px),
white;
  background-size:50px 40px;
  border-radius:24px 24px 0 0;
}

.calendar-top{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:16px;
}

.calendar-month{
  width:100%;
  text-align:center;
  font-size:24px;
  font-weight:800;
  color:#2c7b6e;
}

.calendar-year{
  background:#d8c6f4;
  color:#333;
  font-size:14px;
  font-weight:700;
  padding:8px 14px;
  border-radius:12px;
}

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

.day-name{
  font-size:11px;
  font-weight:700;
  color:#4f7f76;
  padding-bottom:4px;
}

.day{
  background:#fff;
  border:1px solid #eee;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  font-size:15px;
  color:#333;
  position:relative;
}

.day.empty{
  background:transparent;
  border:none;
}

.day.event::after{
  content:"⭐";
  position:absolute;
  top:-6px;
  right:-4px;
  font-size:10px;
  z-index:2;
}

/* EVENT */
.event-header{
  background:white;
  display:inline-block;
  padding:0 18px;
  border-radius:14px;
  font-size:12px;
  font-weight:700;
  color:#2c7b6e;
  margin-bottom:16px;
}

.event-card{
  display:flex;
  align-items:flex-start;
  gap:2px;
  padding:0;
  border-bottom:1px solid #eee;
  background:none;
  box-shadow:none;
  border-radius:0;
  margin-top:10px;
}

/* event terakhir gak ada garis */
.event-card:last-child{
  border-bottom:none;
}

.event-date-box{
  min-width:72px;
  text-align:center;
}

.event-month{
  font-size:12px;
  color:#999;
  font-weight:700;
}

.event-day{
  font-size:18px;
  font-weight:800;
  color:#5aaea0;
  line-height:1;
  margin-bottom:8px;
}

.event-info{
  flex:1;
}

.event-title{
  font-size:10px;
  font-weight:400;
  color:#222;
}

@media(max-width:768px){
  .day{
    min-height:38px;
    font-size:13px;
  }

  .event-day{
    font-size:28px;
    align-items:center;
  }

  .event-title{
    font-size:12px;
    align-items:center;
  }
}
  
.event-line{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-bottom:8px;
}

.event-time-inline{
  font-size:12px;
  font-weight:700;
  background:#b8e5dd;
  padding:4px 8px;
  border-radius:10px;
  white-space:nowrap;
  color:#111;
}

.event-name{
  font-size:var(--small);
  font-weight:600;
  color:#222;
  align-items:flex-start;
}

.event-toggle{
  width:100%;
  background:none;
  border:none;
  padding:0;
  font-weight:700;
  font-size:13px;
  color:#444;
  cursor:pointer;
  margin-top:6px;
  margin-bottom:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  box-shadow:none;
  border-radius:0;
  border-bottom:1px solid rgba(255,255,255,.4);
}
  
.event-list{
  padding:0;
  animation:fadeIn .25s ease;
}

@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(-8px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
  
.dropdown-icon{
  width:18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.25s ease;
}

.dropdown-icon svg{
  width:100%;
  height:100%;
}

.dropdown-icon path{
  stroke:#444;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
}

.event-popup{
  position:fixed;
  z-index:9999;
  pointer-events:none;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  width:auto;
  min-width:250px;
  max-width:340px;
  background:rgba(0,0,0,0.58);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  padding:10px 12px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  white-space:normal;
  word-break:break-word;
  opacity:0;
  transition:
    opacity .2s ease,
    transform .2s ease;
}

.event-popup.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
  pointer-events:auto;
}

.popup-date{
  font-size:11px;
  color:rgba(255,255,255,.75);
  margin-bottom:6px;
}

.popup-title{
  font-size:15px;
  font-weight:700;
  color:white;
  margin-bottom:8px;
  line-height:1.3;
  word-break:keep-all;
}

.popup-line{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:8px;
}

.popup-time-inline{
  font-size:12px;
  font-weight:700;
  background:rgba(255,255,255,.18);
  padding:4px 8px;
  border-radius:999px;
  white-space:nowrap;
  color:#fff;
}

.popup-name{
  font-size:var(--small);
  font-weight:600;
  color:white;
  align-items:flex-start;
}