/* CourtReserve - Calendar Styles */

.cr-calendar {
    max-width: 400px;
    margin: 0 auto 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
}

.cr-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #0d6efd;
    color: #fff;
}

.cr-cal-title {
    font-weight: 600;
    font-size: 16px;
}

.cr-cal-nav {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}

.cr-cal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cr-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 8px;
}

.cr-cal-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    padding: 8px 4px;
    text-transform: uppercase;
}

.cr-cal-day {
    text-align: center;
    padding: 10px 4px;
    font-size: 14px;
    border-radius: 8px;
    cursor: default;
    transition: all 0.15s ease;
}

.cr-cal-empty {
    background: transparent;
}

.cr-cal-disabled {
    color: #ccc;
    cursor: not-allowed;
}

.cr-cal-blocked {
    color: #dc3545;
    text-decoration: line-through;
}

.cr-cal-available {
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

.cr-cal-available:hover {
    background: #e3f2fd;
    color: #0d6efd;
}

.cr-cal-selected {
    background: #0d6efd !important;
    color: #fff !important;
    font-weight: 600;
}

.cr-cal-today {
    border: 2px solid #0d6efd;
}

.cr-cal-today.cr-cal-selected {
    border-color: #0a58ca;
}

/* Responsive */
@media (max-width: 480px) {
    .cr-calendar {
        max-width: 100%;
    }

    .cr-cal-day {
        padding: 8px 2px;
        font-size: 13px;
    }

    .cr-cal-day-header {
        font-size: 10px;
    }
}
