.booking-calendar {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.calendar-header button {
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.calendar-header button:hover {
    background: #005177;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.weekday {
    padding: 0.5rem;
    background: #f0f0f0;
    border-radius: 4px;
}

.days {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-bottom: 2rem;
}

.day {
    aspect-ratio: 1;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.day:not(.empty) {
    cursor: pointer;
}

.day:not(.empty):hover {
    background-color: #f0f0f0;
}

.day.selected {
    background-color: #bbdefb;
    border-color: #1976d2;
}

.day.today {
    background-color: #e3f2fd;
    border-color: #2196f3;
    font-weight: bold;
}

.day.empty {
    background: #f9f9f9;
    border: 1px solid #f0f0f0;
    cursor: default;
}

.day.selected {
    background: #bbdefb;
    border-color: #1976d2;
    font-weight: bold;
}

.day:not(.empty):hover {
    background: #f5f5f5;
    cursor: pointer;
}

/* Courts grid styles */
.courts-container {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.courts-container h3 {
    margin: 0 0 1rem 0;
    text-align: center;
}

.courts-grid {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.time-header {
    display: grid;
    grid-template-columns: 100px repeat(8, 1fr);
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.corner-cell, .court-header {
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    border-right: 1px solid #dee2e6;
}

.time-row {
    display: grid;
    grid-template-columns: 100px repeat(8, 1fr);
    border-bottom: 1px solid #dee2e6;
}

.time-cell {
    padding: 0.5rem;
    border-right: 1px solid #dee2e6;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-cell {
    padding: 0.5rem;
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-slot {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: #4caf50;
    color: white;
}

.booking-slot:not(.booked):hover {
    background: #43a047;
}

.booking-slot.booked {
    background: #f44336;
    cursor: not-allowed;
}

.booking-slot:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.booking-cell {
    padding: 0.5rem;
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.booking-slot {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.booking-slot.available {
    background: #4caf50;
    color: white;
}

.booking-slot.available:hover {
    background: #43a047;
}

.booked-slot {
    position: relative;
    width: 100%;
    padding: 0.75rem;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.delete-booking {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 1;
    transition: opacity 0.2s;
}

.booked-slot:hover .delete-booking {
    opacity: 1;
}

.delete-booking:hover {
    color: #cc0000;
}

.day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

/* Mobile base adjustments */
.booking-calendar {
    padding: 0.5rem;
    margin: 1rem auto;
}

.calendar-header {
    padding: 0 0.5rem;
}

.calendar-header h2 {
    font-size: 1.25rem;
}

.calendar-header button {
    padding: 0.5rem;
    font-size: 0.875rem;
}

.weekday {
    padding: 0.25rem;
    font-size: 0.75rem;
}

.weekdays {
    gap: 2px;
}

.days {
    gap: 2px;
    margin-bottom: 1rem;
}

.day {
    padding: 0.25rem;
    font-size: 0.875rem;
}

/* Courts grid mobile adjustments */
.courts-container {
    margin-top: 1rem;
    padding: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.courts-grid {
    min-width: 500px !important;
}

.time-header {
    grid-template-columns: 80px repeat(8, 1fr) !important;
}

.time-row {
    grid-template-columns: 80px repeat(8, 1fr) !important;
}

.corner-cell, 
.court-header {
    padding: 0.5rem;
    font-size: 0.875rem;
}

.time-cell {
    padding: 0.25rem;
    font-size: 0.75rem;
}

.booking-cell {
    padding: 0.25rem;
    min-height: 40px;
}

.booking-slot {
    padding: 0.25rem;
    font-size: 0.75rem;
}

.booked-slot {
    padding: 0.5rem;
    font-size: 0.75rem;
    word-break: break-word;
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .booking-calendar {
        padding: 1rem;
        margin: 2rem auto;
    }

    .calendar-header {
        padding: 0 1rem;
    }

    .calendar-header h2 {
        font-size: 1.5rem;
    }

    .calendar-header button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .weekday {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .weekdays {
        gap: 4px;
    }

    .days {
        gap: 4px;
        margin-bottom: 2rem;
    }

    .day {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .courts-container {
        margin-top: 2rem;
        padding: 1rem;
    }

    .courts-grid {
        min-width: 500px !important;
    }

    .time-header,
    .time-row {
        grid-template-columns: 100px repeat(8, 1fr);
    }

    .corner-cell,
    .court-header {
        padding: 1rem;
        font-size: 1rem;
    }

    .time-cell {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .booking-cell {
        padding: 0.5rem;
        min-height: 50px;
    }

    .booking-slot {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .booked-slot {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/*# sourceMappingURL=index.css.map*/