/* Simple Calendar CSS - Light theme for public website */

.simple-calendar {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.calendar-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    flex: 1;
    color: #333;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-btn {
    background: #410099;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.calendar-btn:hover {
    background: #310075;
}

.calendar-prev,
.calendar-next {
    font-size: 20px;
    padding: 8px 12px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dee2e6;
    table-layout: fixed;
}

.calendar-table thead th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    background: #f8f9fa;
    font-size: 14px;
    text-transform: uppercase;
    color: #495057;
}

.calendar-day {
    vertical-align: top;
    padding: 0;
    border: 1px solid #dee2e6;
    position: relative;
    background: #fff;
    width: 14.28%; /* 100% / 7 días */
}

.calendar-day::before {
    content: "";
    display: block;
    padding-top: 100%; /* Esto crea el cuadrado */
}

.calendar-day-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.calendar-day-empty {
    background: #f8f9fa;
}

.calendar-day-number {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
    font-weight: 500;
    width: 100%;
    text-align: left;
}

.calendar-day-today {
    background: #fff3cd !important;
    border: 2px solid #ffc107 !important;
}

.calendar-day-today .calendar-day-number {
    font-weight: 700;
    color: #000;
}

.calendar-day-has-event {
    position: relative;
}

/* Event styling - Link wrapper */
.calendar-event {
    display: block;
    margin: 0 auto;
    text-decoration: none;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.calendar-event img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Calendar type colors - Background colors for different session types */
.calendar-day.fondo1 {
    background-color: #ccbae3 !important; /* Sábados: 11:45 a 20:30 */
}

.calendar-day.fondo2 {
    background-color: #ccdea6 !important; /* Viernes: 17:45 a 21:15 */
}

.calendar-day.fondo3 {
    background-color: #e7bbb9 !important; /* Domingos: 11:45 a 17:00 */
}

.calendar-day.fondo4 {
    background-color: #cccccc !important; /* Otros: 11:45 a 18:00 */
}

/* Ensure day numbers are visible on colored backgrounds */
.calendar-day.fondo1 .calendar-day-number,
.calendar-day.fondo2 .calendar-day-number,
.calendar-day.fondo3 .calendar-day-number,
.calendar-day.fondo4 .calendar-day-number {
    color: #000 !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-day-content {
        padding: 2px;
    }

    .calendar-day-number {
        font-size: 11px;
    }

    .calendar-event {
        width: 40px;
        height: 40px;
    }

    .calendar-title {
        font-size: 18px;
    }

    .calendar-table thead th {
        padding: 8px 4px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .calendar-day-content {
        padding: 2px;
    }

    .calendar-day-number {
        font-size: 10px;
    }

    .calendar-event {
        width: 30px;
        height: 30px;
    }
}
