/**
 * Registration Plugin Styles
 */

/* Calendar additional styles */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.today {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
}

.legend-color.has-group {
    background-color: #4b5563;
}

/* Calendar group category */
.calendar-group-category {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-right: 4px;
}

/* Form loading state */
.registration-form.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.registration-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4b5563;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Calendar responsive */
@media (max-width: 600px) {
    .calendar-grid {
        font-size: 0.75rem;
    }

    .calendar-day {
        min-height: 50px;
        padding: 2px;
    }

    .calendar-group {
        font-size: 0.65rem;
        padding: 2px 4px;
    }

    .calendar-group-count {
        display: none;
    }

    .calendar-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
