/* ============================================================
   PLANILLA PROFESORES EUNOIA — Estilo Notion minimalista
============================================================ */

.eun-wrap {
    max-width: 860px;
    margin: 32px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #37352f;
    line-height: 1.5;
}

.eun-wrap * { box-sizing: border-box; }

.eun-empty,
.eun-empty-small {
    color: #9b9a97;
    font-size: 14px;
    text-align: center;
    padding: 24px;
}

/* ============================================================
   TARJETA DEL PROFESOR
============================================================ */
.eun-teacher-card {
    background: #f7f6f3;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.eun-teacher-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.eun-label {
    font-size: 11px;
    color: #9b9a97;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 4px;
    font-weight: 500;
}

.eun-teacher-name {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #37352f;
}

.eun-metrics {
    display: flex;
    gap: 8px;
}

.eun-metric {
    background: #ffffff;
    border: 1px solid #e9e9e7;
    padding: 8px 14px;
    border-radius: 6px;
    min-width: 90px;
}

.eun-metric-label {
    font-size: 11px;
    color: #9b9a97;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.eun-metric-value {
    font-size: 18px;
    font-weight: 600;
    margin: 2px 0 0;
    color: #37352f;
}

/* ============================================================
   LISTA DE CURSOS
============================================================ */
.eun-courses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eun-course {
    background: #ffffff;
    border: 1px solid #e9e9e7;
    border-radius: 8px;
    transition: border-color 0.15s ease;
}

.eun-course:hover { border-color: #d9d8d5; }

.eun-course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    gap: 12px;
    flex-wrap: wrap;
}

.eun-course-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.eun-course-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.eun-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.eun-course-name {
    font-weight: 500;
    font-size: 14px;
    color: #37352f;
}

.eun-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b6b66;
    background: #f1f1ef;
    border-radius: 4px;
    padding: 3px 7px;
    white-space: nowrap;
}

.eun-stat-chip strong {
    font-weight: 600;
    color: #37352f;
}

.eun-chip-label {
    font-weight: 500;
    color: #9b9a97;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 10px;
    margin-right: 2px;
}

.eun-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9b9a97;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.eun-course.is-open .eun-toggle { transform: rotate(180deg); }

.eun-course-body {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #f0efed;
}

.eun-course.is-open .eun-course-body { display: block; }

/* ============================================================
   TABS DE ROL
============================================================ */
.eun-role-tabs {
    display: inline-flex;
    background: #f1f1ef;
    border-radius: 6px;
    padding: 3px;
    margin: 14px 0 4px;
    gap: 2px;
}

.eun-tab {
    background: transparent;
    border: none;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #6b6b66;
    cursor: pointer;
    border-radius: 4px;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
    letter-spacing: 0.2px;
}

.eun-tab:hover { color: #37352f; }

.eun-tab.is-active {
    background: #ffffff;
    color: #37352f;
    box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
}

/* ============================================================
   CALENDARIO
============================================================ */
.eun-calendar-wrap { padding-top: 10px; }

.eun-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.eun-cal-nav-btn {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 4px;
    color: #37352f;
    line-height: 1;
    transition: background 0.15s ease;
}

.eun-cal-nav-btn:hover { background: #f1f1ef; }

.eun-cal-month-label {
    font-size: 13px;
    font-weight: 500;
    color: #37352f;
    min-width: 140px;
    text-align: center;
    text-transform: capitalize;
}

.eun-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.eun-cal-dayname {
    text-align: center;
    color: #9b9a97;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eun-cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    color: #37352f;
    transition: background 0.12s ease, border-color 0.12s ease;
    position: relative;
}

.eun-cal-cell.is-empty {
    cursor: default;
    color: transparent;
}

.eun-cal-cell:not(.is-empty):hover { background: #f1f1ef; }

.eun-cal-cell.is-today {
    border-color: #d9d8d5;
    font-weight: 600;
}

.eun-cal-cell.has-class { font-weight: 500; }

.eun-cal-cell.is-selected { border-width: 2px; }

/* Indicador del "otro rol" (punto pequeño debajo del número) */
.eun-cal-cell .eun-other-dot {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.55;
}

/* ============================================================
   EDITOR DE CLASE
============================================================ */
.eun-editor {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0efed;
}

.eun-editor-empty {
    font-size: 13px;
    color: #9b9a97;
    text-align: center;
    padding: 16px 0;
}

.eun-editor-label {
    font-size: 11px;
    color: #9b9a97;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    font-weight: 500;
}

.eun-editor-role-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #e9e9e7;
    color: #37352f;
}

.eun-editor-role-badge.is-asist {
    background: #fef3e6;
    color: #8a4b0a;
}

.eun-editor-role-badge.is-prof {
    background: #e8f0fe;
    color: #1a4b8c;
}

.eun-editor-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.eun-input {
    border: 1px solid #e9e9e7;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    color: #37352f;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eun-input:focus {
    border-color: #b8b7b2;
    box-shadow: 0 0 0 2px rgba(35, 131, 226, 0.1);
}

.eun-input-hours { width: 70px; }

.eun-input-topic {
    flex: 1;
    min-width: 180px;
}

.eun-unit {
    font-size: 13px;
    color: #6b6b66;
}

.eun-editor-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    align-items: center;
}

/* ============================================================
   BOTONES
============================================================ */
.eun-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #e9e9e7;
    background: #ffffff;
    color: #37352f;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.eun-btn:hover {
    background: #f1f1ef;
    border-color: #d9d8d5;
}

.eun-btn-primary {
    background: #37352f;
    color: #ffffff;
    border-color: #37352f;
}

.eun-btn-primary:hover {
    background: #2a2925;
    color: #ffffff;
    border-color: #2a2925;
}

.eun-btn-danger { color: #c03838; }

.eun-btn-danger:hover {
    background: #fbeaea;
    border-color: #f0c4c4;
}

.eun-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   FEEDBACK
============================================================ */
.eun-saved-flash {
    font-size: 12px;
    color: #0f6e56;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 6px;
}

.eun-saved-flash.is-visible { opacity: 1; }

/* ============================================================
   EXPORTAR
============================================================ */
.eun-export-bar {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e9e9e7;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 560px) {
    .eun-teacher-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .eun-metrics { width: 100%; }
    .eun-metric { flex: 1; }
    .eun-course-title { font-size: 13px; }
    .eun-cal-cell { font-size: 12px; }
    .eun-course-header { padding: 10px 12px; }
    .eun-stat-chip { font-size: 10px; padding: 2px 6px; }
}
