/*
Nombre del archivo: frontend/modulos/curso-concreto/calendario/calendario.css
*/

/* ============================================================
   CALENDARIO — ESTILOS BASE
   ============================================================ */

.bazan-calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bazan-calendario-header h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1; /* evita que quede más alto que las flechas */
}

.bazan-calendario-header button {
    background: rgb(0,127,162);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.bazan-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.bazan-cal-dia-titulo {
    text-align: center;
    font-weight: bold;
    padding: 6px 0;
}

/* ============================================================
   BOTONES PARA CAMBIAR DE MES
   ============================================================ */

.bazan-calendario-header {
    display: flex;
    align-items: center;   /* centra verticalmente flechas + título */
    justify-content: center;
    gap: 18px;
}

.bazan-calendario-header .bazan-cal-prev,
.bazan-calendario-header .bazan-cal-next {
    font-size: 32px;        /* tamaño grande y visible */
    font-weight: 200;       /* fino, elegante */
    color: #333;            /* gris oscuro neutro */
    cursor: pointer;
    padding: 6px 12px;      /* área de clic amplia */
    line-height: 1;         /* evita desalineación vertical */
    user-select: none;
    transition: color 0.15s, transform 0.15s;
}

.bazan-calendario-header .bazan-cal-prev:hover,
.bazan-calendario-header .bazan-cal-next:hover {
    color: rgb(0,127,162);  /* azul corporativo */
    transform: scale(1.25); /* efecto claro de interacción */
}


/* ============================================================
   CELDAS DEL CALENDARIO
   ============================================================ */

.bazan-cal-dia {
    background: #f4f4f4;
    border-radius: 6px;
    padding: 6px;
    min-height: 120px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: 0.15s;
    overflow: hidden;
}

.bazan-cal-dia:hover {
    background: #e8f7fb;
    transform: scale(1.02);
}

.bazan-cal-dia-vacio {
    background: #fafafa;
    cursor: default;
}

.bazan-cal-dia-vacio:hover {
    transform: none;
    background: #fafafa;
}

.bazan-cal-hoy {
    border: 2px solid rgb(0,127,162);
}

/* ============================================================
   CONTENIDO DEL DÍA
   ============================================================ */

.bazan-cal-numero {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

/* ============================================================
   TARJETA DE EVENTO (dentro del día)
   ============================================================ */

.bazan-cal-evento {
    flex-grow: 1;
    background: color-mix(in srgb, var(--color-evento) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-evento) 40%, transparent);
    border-left: 6px solid var(--color-evento);
    border-radius: 6px;
    padding: 6px 8px 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    box-shadow: 0 0 6px color-mix(in srgb, var(--color-evento) 55%, transparent);
}

.bazan-cal-titulo {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    max-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bazan-cal-extracto {
    font-size: 11px;
    opacity: 0.75;
    line-height: 1.25;
    max-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
    .bazan-cal-dia {
        min-height: 100px;
        padding: 6px;
    }

    .bazan-calendario-header h3 {
        font-size: 18px;
    }
}

/* ============================================================
   MODAL PARA EVENTOS DEL CALENDARIO
   ============================================================ */

#bazan-cal-form-contenido {
    height: auto;
    min-height: 10em;
    line-height: 1.4;
    resize: vertical;
}

.bazan-cal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

.bazan-cal-modal.visible {
    display: flex;
}

.bazan-cal-modal-contenido {
    background: #fff;
    max-width: 500px;
    width: 100%;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    max-height: 80vh;
    overflow-y: auto;
}

.bazan-cal-modal-contenido h3 {
    margin-top: 0;
}

.bazan-cal-modal-fecha {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.bazan-cal-modal-texto {
    white-space: pre-line;
    line-height: 1.5;
}

#bazan-cal-modal-cerrar {
    margin-top: 20px;
    background: rgb(0,127,162);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

#bazan-cal-modal-cerrar:hover {
    background: rgb(0,110,140);
}

.bazan-cal-modal-contenido button {
    width: 100%;
    padding: 12px 16px;
    margin-top: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

#bazan-cal-form-guardar {
    background: rgb(0,127,162);
    color: #fff;
}

#bazan-cal-form-guardar:hover {
    background: rgb(0,110,140);
    transform: translateY(-1px);
}

#bazan-cal-form-eliminar {
    background: #d9534f;
    color: #fff;
}

#bazan-cal-form-eliminar:hover {
    background: #c9302c;
    transform: translateY(-1px);
}

#bazan-cal-modal-cerrar {
    background: #e0e0e0;
    color: #333;
}

#bazan-cal-modal-cerrar:hover {
    background: #d5d5d5;
    transform: translateY(-1px);
}

/* ============================================================
   SELECTOR DE COLORES (NUEVO)
   ============================================================ */

.bazan-cal-colores-wrapper {
    display: flex;
    gap: 8px;
    margin: 10px 0 15px 0;
}

.bazan-cal-color-opcion {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.bazan-cal-color-opcion.activo {
    border-color: #000;
}

.excel-verde   { background: #2ecc71; }
.excel-azul    { background: #3498db; }
.excel-rojo    { background: #e74c3c; }
.excel-morado  { background: #9b59b6; }
.excel-naranja { background: #e67e22; }
