/* Estilo general del contenedor del calendario */
.calendar-container {
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
}

/* Selector de mes y año */

/* Estilo armonioso para formulario de mes y año */
.month-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;;
    /* margin: 20px 0; */
}

.month-selector .form-select {
    width: auto;
    min-width: 160px;
    max-width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.month-selector .btn {
    min-width: 160px;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 8px;
    background-color: #026937;
    border-color: #014d27;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.month-selector .btn i.bi-calendar-date {
    font-size: 1.1rem;
}



/* Tabla del calendario */
.calendar {
    width: 100%;
    margin-top: 20px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #ddd;
}

.calendar-table td {
    width: 14.28%;
    padding: 8px;
    text-align: left;
    vertical-align: top;
    height: 100px;
    border: 1px solid #e0e0e0;
}

.calendar-table th {
    background-color: #f1f3f4;
    color: #202124;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.calendar-table tr:nth-child(even) td {
    background-color: #fcfcfc;
}

.calendar-table tr:nth-child(odd) td {
    background-color: #fff;
}

/* Día del calendario */
.day {
    position: relative;
    background-color: transparent;
    border-radius: 6px;
    padding: 4px;
    transition: background-color 0.2s;
}

.day:hover {
    background-color: #e8f0fe;
}

/* Eventos del calendario */
.event {
    background-color: #1a73e8;
    color: #fff;
    padding: 6px 8px;
    margin-top: 4px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.event:hover {
    background-color: #1558b0;
}

.event-title {
    font-weight: 500;
    font-size: 13px;
}

.event-time {
    font-size: 11px;
    opacity: 0.8;
}

/* Tooltip del evento */
.event[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(60, 64, 67, 0.9);
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    max-width: 250px;
    white-space: nowrap;
    z-index: 10;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Resaltado de encabezado de la tabla */
.calendar-table th {
    background-color: #026937; /* verde más fuerte */
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 6px;
    border-bottom: 3px solid #014d27;
    box-shadow: inset 0 -2px 0 #014d27;
    line-height: 1.2;
}


/* Resaltado de sábados y domingos basados en posición */
.calendar-table td:nth-child(1) {
    background-color: #ffebee !important; /* domingo - rojo claro */
    font-weight: bold;
    color: #b71c1c;
}

.calendar-table td:nth-child(7) {
    background-color: #e3f2fd !important; /* sábado - azul claro */
    font-weight: bold;
    color: #0d47a1;
}
