/* Calendar day cells */
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 44px; /* touch target */
    min-width: 44px;
}

.cal-day:hover:not(.cal-disabled):not(.cal-empty) {
    background: #e6f7f7;
    color: #00B8B8;
}

.cal-day.cal-selected {
    background: var(--brand-color, #00B8B8);
    color: white;
}

.cal-day.cal-disabled {
    color: #d1d5db;
    cursor: default;
}

.cal-day.cal-empty {
    cursor: default;
}

.cal-day.cal-today:not(.cal-selected) {
    border: 2px solid var(--brand-color, #00B8B8);
}

/* Slot buttons */
.slot-btn {
    min-height: 44px; /* touch target */
}

.slot-btn.slot-selected {
    border-color: var(--brand-color, #00B8B8);
    background: color-mix(in srgb, var(--brand-color, #00B8B8) 10%, white);
    color: var(--brand-color, #00B8B8);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* Focus states for accessibility */
.cal-day:focus-visible,
.slot-btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand-color, #00B8B8);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .cal-day {
        font-size: 0.8rem;
        min-height: 40px;
        min-width: 40px;
    }
}
