/* Base Checkbox Component */

.base-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--c-base-text);
  user-select: none;
}

.base-checkbox--small {
  gap: 0.25rem;
  font-size: 0.6875rem;
}

.base-checkbox__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.base-checkbox__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: 0.25rem;
  background-color: var(--c-app-bg);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.base-checkbox--small .base-checkbox__box {
  width: 0.8125rem;
  height: 0.8125rem;
  border-width: 1px;
  border-radius: 0.1875rem;
}

.base-checkbox__icon {
  width: 0.625rem;
  height: 0.625rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.15s ease;
  color: var(--c-brand-text);
}

.base-checkbox--small .base-checkbox__icon {
  width: 0.5rem;
  height: 0.5rem;
}

.base-checkbox__input:checked + .base-checkbox__box {
  background-color: var(--c-brand);
  border-color: var(--c-brand);
}

.base-checkbox__input:checked + .base-checkbox__box .base-checkbox__icon {
  opacity: 1;
  transform: scale(1);
}

.base-checkbox__label {
  line-height: 1;
}

.base-checkbox--small .base-checkbox__label {
  color: var(--c-base-subtitle-text);
}

/* Timeline-specific positioning for the checkbox inside day cells */
.timeline-required-checkbox {
  position: absolute;
  bottom: 0.125rem;
  right: 0.125rem;
  z-index: 1;
}

.timeline-required-checkbox .base-checkbox__label {
  color: #FFFFFF;
  font-weight: 600;
}

/* Recurring item checkbox positioning */
.recurring-required-checkbox {
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
}

.recurring-required-checkbox .base-checkbox__label {
  font-weight: 600;
}
