/* ====== Algemene kalender styling ====== */
#aclo-calendar {
  max-width: 100%;
  margin: 20px auto;
  font-family: system-ui, sans-serif;
  box-sizing: border-box;
  padding: 0 10px;
}

/* Nav */
.aclo-calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.aclo-calendar-nav button {
  background: #ee7215;
  border: none;
  color: white;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

/* Grid (desktop / tablet) */
.aclo-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Weekday headers */
.aclo-day-header {
  text-align: center;
  font-weight: 600;
  background: #000;
  color: #fff;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 13px;
}

/* Dagcel (desktop) */
.aclo-day {
  border: 1px solid #ddd;
  min-height: 110px;
  padding: 8px;
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.aclo-day-number {
  font-weight: bold;
  font-size: 13px;
  background-color: #eee;
  padding: 3px 6px;
  display: inline-block;
  border-radius: 4px;
}
.aclo-event {
  background: #ee7215;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 8px;
  cursor: pointer;
  word-break: break-word;
}
.aclo-time {
  font-size: 12px;
  color: #fff;
  margin-left: 6px;
}

/* ====== Popup styling ====== */
#aclo-calendar-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
}
#aclo-calendar-popup.hidden { display: none; }

.aclo-popup-inner {
  position: relative;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.aclo-close-popup {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ee7215;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
}
.aclo-close-popup:hover { background: #d45e0f; }

.aclo-popup-body { margin-top: 8px; }

.ical-button {
  display: inline-block;
  background: #ee7215;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 14px;
}
.ical-button:hover { background: #d45e0f; }

#aclo-calendar-popup h2 { font-size: 32px; }

/* ====== Mobile ====== */
@media (max-width: 700px) {
  .aclo-day-header { display: none; }

  .aclo-calendar-grid { display: block; }

  .aclo-day {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    min-height: auto;
  }

  .aclo-day-number {
    display: block;
    margin-bottom: 8px;
    background: #f0f0f0;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 14px;
  }

  .aclo-event {
    display: block;
    width: 100%;
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 14px;
  }

  .aclo-day.empty { display: none !important; }

  .aclo-popup-inner { padding: 14px; max-width: 95%; }

  .aclo-close-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 40px;
  }
}

.aclo-close-popup {
    outline: none; /* geen blauwe focus-ring */
}

.aclo-close-popup:focus {
    outline: none; /* geen focus-ring bij keyboard */
}

.aclo-day.empty {
    visibility: hidden;
}

.aclo-current-month {
	font-weight: 600;
	font-size: 32px;
	text-transform: capitalize;
}