/**
 * timetable.css
 * Estilos modernos para el timetable renderer.
 */

/* Contenedor principal */
.timetable {
    display: grid;
    grid-template-columns: 80px repeat(6, 1fr);
    gap: 1px;
    background-color: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

/* Encabezado de días */
.timetable-corner {
    background-color: #424242;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
}

.timetable-day {
    background-color: #424242;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bloques horarios */
.timetable-block {
    background-color: #f5f5f5;
    color: #616161;
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Celdas de asignación */
.timetable-slot {
    background-color: #ffffff;
    padding: 8px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
    word-break: break-word;
}

.timetable-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.timetable-slot strong {
    font-size: 13px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 4px;
    line-height: 1.2;
}

.timetable-slot small {
    font-size: 11px;
    color: #757575;
    font-weight: 500;
}

/* Celda vacía */
.timetable-slot.empty {
    background-color: #fafafa;
    border: 2px dashed #e0e0e0;
    color: #bdbdbd;
    font-style: italic;
}

/* Responsividad */
@media (max-width: 768px) {
    .timetable {
        grid-template-columns: 60px repeat(6, 1fr);
        font-size: 12px;
    }

    .timetable-slot {
        min-height: 50px;
        padding: 6px;
    }

    .timetable-slot strong {
        font-size: 11px;
    }

    .timetable-slot small {
        font-size: 10px;
    }

    .timetable-day {
        font-size: 11px;
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .timetable {
        grid-template-columns: 50px repeat(6, 1fr);
        font-size: 11px;
    }

    .timetable-slot {
        min-height: 40px;
        padding: 4px;
    }

    .timetable-slot strong {
        font-size: 10px;
    }

    .timetable-slot small {
        font-size: 9px;
    }

    .timetable-day {
        font-size: 10px;
        padding: 6px 2px;
    }
}
