.oneclicket-calendar {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
  padding: 16px;
  max-width: 1100px;
}

.oneclicket-calendar__header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  padding-bottom: 10px;
  border-bottom: 1px solid #f2f4f7;
  backdrop-filter: blur(6px);
}

.oneclicket-calendar__views {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #eaecf0;
  background: #f9fafb;
}

.oneclicket-calendar__view {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.oneclicket-calendar__view.is-active {
  background: #fff;
  color: #6941c6;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}

.oneclicket-calendar__controls {
  display: inline-flex;
  gap: 8px;
}

.oneclicket-calendar__btn {
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease,
    box-shadow 140ms ease;
}

.oneclicket-calendar__btn:hover {
  background: #f8f9fc;
}

.oneclicket-calendar__btn--today {
  border-color: #7f56d9;
  color: #6941c6;
}

.oneclicket-calendar__month-label {
  margin: 0;
  text-transform: capitalize;
  color: #101828;
  font-size: 18px;
  flex: 1 1 180px;
  text-align: center;
}

.oneclicket-calendar__legend {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.oneclicket-calendar__legend-item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #667085;
}

.oneclicket-calendar__content {
  min-height: 120px;
}

.oneclicket-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.oneclicket-calendar__grid--week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.oneclicket-calendar__weekday-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.oneclicket-calendar__weekday {
  font-size: 12px;
  font-weight: 600;
  color: #667085;
  text-transform: uppercase;
  text-align: center;
}

.oneclicket-calendar__day {
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #fff;
  min-height: 86px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.oneclicket-calendar__day:hover {
  border-color: #d6bbfb;
  box-shadow: 0 0 0 2px rgba(127, 86, 217, 0.08);
  transform: translateY(-1px);
}

.oneclicket-calendar__day--muted {
  opacity: 0.45;
}

.oneclicket-calendar__day--today {
  border-color: #9e77ed;
}

.oneclicket-calendar__day--selected {
  box-shadow: inset 0 0 0 2px #7f56d9;
}

.oneclicket-calendar__day--week {
  min-height: 110px;
}

.oneclicket-calendar__day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oneclicket-calendar__day-number {
  font-size: 13px;
  font-weight: 600;
  color: #101828;
}

.oneclicket-calendar__day-number--today {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #7f56d9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oneclicket-calendar__day-weekday {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  color: #667085;
}

.oneclicket-calendar__day-count {
  font-size: 11px;
  color: #475467;
}

.oneclicket-calendar__day-badges {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.oneclicket-calendar__day-badge {
  display: block;
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oneclicket-calendar__day-badge--f1 {
  background: #fee2e2;
  color: #b42318;
}
.oneclicket-calendar__day-badge--tennis {
  background: #dcfce7;
  color: #027a48;
}
.oneclicket-calendar__day-badge--football {
  background: #dbeafe;
  color: #175cd3;
}
.oneclicket-calendar__day-badge--music {
  background: #fef3c7;
  color: #b54708;
}
.oneclicket-calendar__day-badge--other {
  background: #f3e8ff;
  color: #7a2e99;
}

.oneclicket-calendar__day-more {
  font-size: 11px;
  color: #6941c6;
  font-weight: 600;
}

.oneclicket-calendar__day-empty {
  display: inline-flex;
  color: #98a2b3;
  font-size: 18px;
  min-height: 20px;
}

.oneclicket-calendar__day-dots {
  display: none;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.oneclicket-calendar__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.oneclicket-calendar__dot--f1 {
  background: #ef4444;
}
.oneclicket-calendar__dot--tennis {
  background: #22c55e;
}
.oneclicket-calendar__dot--football {
  background: #3b82f6;
}
.oneclicket-calendar__dot--music {
  background: #facc15;
}
.oneclicket-calendar__dot--other {
  background: #a855f7;
}

.oneclicket-calendar__year {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.oneclicket-calendar__mini-month {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 10px;
  background: #fcfcfd;
}

.oneclicket-calendar__mini-month-title {
  margin: 0 0 8px;
  text-transform: capitalize;
  font-size: 13px;
  font-weight: 700;
  color: #101828;
}

.oneclicket-calendar__mini-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.oneclicket-calendar__mini-day {
  border: 0;
  background: transparent;
  border-radius: 5px;
  min-height: 18px;
  font-size: 10px;
  color: #344054;
  cursor: pointer;
  position: relative;
  padding: 2px;
  transition: background-color 140ms ease, color 140ms ease;
}

.oneclicket-calendar__mini-day--muted {
  opacity: 0.35;
}

.oneclicket-calendar__mini-day--event::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #7f56d9;
  position: absolute;
  right: 2px;
  bottom: 2px;
}

.oneclicket-calendar__day-view {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 14px;
  background: #fcfcfd;
}

.oneclicket-calendar__day-view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.oneclicket-calendar__day-view-number {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7f56d9;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.oneclicket-calendar__day-view-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oneclicket-calendar__day-view-weekday {
  text-transform: capitalize;
  color: #101828;
}

.oneclicket-calendar__day-view-month {
  color: #475467;
  text-transform: capitalize;
}

.oneclicket-calendar__panel {
  margin-top: 16px;
  border-top: 1px solid #eaecf0;
  padding-top: 12px;
}

.oneclicket-calendar__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.oneclicket-calendar__panel-title {
  margin: 0 0 10px;
  color: #101828;
  text-transform: capitalize;
}

.oneclicket-calendar__panel-close {
  border: 1px solid #d0d5dd;
  background: #fff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  color: #475467;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.oneclicket-calendar__panel-close:hover {
  background: #f9fafb;
  border-color: #bfc5ce;
}

.oneclicket-calendar__today-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4ebff;
  color: #6941c6;
  font-size: 11px;
  font-weight: 700;
}

.oneclicket-calendar__events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.oneclicket-calendar__event {
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  background: #fcfcfd;
  position: relative;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.oneclicket-calendar__event:hover {
  border-color: #d6bbfb;
  box-shadow: 0 0 0 2px rgba(127, 86, 217, 0.08);
  transform: translateY(-1px);
}

.oneclicket-calendar__event-name {
  display: block;
  color: #101828;
  margin-top: 8px;
}

.oneclicket-calendar__event-category {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.oneclicket-calendar__event-category--f1 {
  background: #fee2e2;
  color: #b42318;
}
.oneclicket-calendar__event-category--tennis {
  background: #dcfce7;
  color: #027a48;
}
.oneclicket-calendar__event-category--football {
  background: #dbeafe;
  color: #175cd3;
}
.oneclicket-calendar__event-category--music {
  background: #fef3c7;
  color: #b54708;
}
.oneclicket-calendar__event-category--other {
  background: #f3e8ff;
  color: #7a2e99;
}

.oneclicket-calendar__event-status {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #b42318;
}

.oneclicket-calendar__event-meta {
  display: block;
  color: #475467;
  margin-top: 4px;
  font-size: 12px;
}

.oneclicket-calendar__empty {
  color: #667085;
}

.oneclicket-calendar__empty--card {
  border: 1px dashed #d0d5dd;
  border-radius: 10px;
  padding: 16px;
  margin: 0;
  text-align: center;
}

.oneclicket-calendar__empty-icon {
  display: block;
  margin-bottom: 6px;
}

.oneclicket-calendar__empty-helper {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #98a2b3;
}

.oneclicket-calendar :is(button, a):focus-visible {
  outline: 2px solid #7f56d9;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .oneclicket-calendar * {
    transition: none !important;
    animation: none !important;
  }
}

.oneclicket-calendar.is-loading {
  opacity: 0.8;
}

@media (max-width: 782px) {
  .oneclicket-calendar {
    padding: 12px;
  }

  .oneclicket-calendar__header {
    flex-direction: column;
    align-items: flex-start;
    position: static;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .oneclicket-calendar__views {
    width: 100%;
    overflow: auto;
  }

  .oneclicket-calendar__controls {
    width: 100%;
  }

  .oneclicket-calendar__month-label {
    text-align: left;
  }

  .oneclicket-calendar__legend {
    display: none;
  }

  .oneclicket-calendar__btn {
    flex: 1;
  }

  .oneclicket-calendar__day {
    min-height: 70px;
    padding: 6px;
  }

  .oneclicket-calendar__grid--week {
    grid-template-columns: 1fr;
  }

  .oneclicket-calendar__year {
    grid-template-columns: 1fr 1fr;
  }

  .oneclicket-calendar__events {
    grid-template-columns: 1fr;
  }

  .oneclicket-calendar__day-badges {
    display: none;
  }

  .oneclicket-calendar__day-dots {
    display: flex;
  }
}

