/* ============================================================
   Anagrafica Educatori - layout moderno coerente con il
   design system Chronos (parallelo a children/parents).
   ============================================================ */

/* ========== Toolbar (search + add) ========== */
.educators-toolbar {
    background: #ffffff;
    border: 1px solid #e3ece0;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 6px rgba(69, 130, 58, 0.05);
}
.educators-toolbar-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

/* Pulsante "Nuovo educatore" - palette viola per distinguere */
.btn-educators-add {
    background: linear-gradient(135deg, #5e35b1 0%, #9575cd 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(94, 53, 177, 0.20);
}
.btn-educators-add:hover {
    background: linear-gradient(135deg, #4a2890 0%, #7e57c2 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(94, 53, 177, 0.30);
}
.btn-educators-add .material-symbols-outlined {
    font-size: 1.15rem !important;
}

/* ========== Meta sopra alla tabella (badge totale) ========== */
.educators-grid-meta {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}
.educators-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(94, 53, 177, 0.10);
    color: #4a2890;
    border: 1px solid rgba(94, 53, 177, 0.22);
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 700;
    font-family: TitilliumWeb-Bold, sans-serif;
}
.educators-count-badge .material-symbols-outlined {
    font-size: 1.1rem !important;
    color: #5e35b1;
}
.educators-count-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

/* ========== Riga educatore ========== */
.grid-container .row.record {
    border-radius: 8px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.grid-container .row.record:hover {
    box-shadow: 0 4px 10px rgba(94, 53, 177, 0.10);
}

/* Avatar (iniziali) - viola */
.educators-name-cell {
    display: flex !important;
    align-items: center;
    gap: 12px;
}
.educators-avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5e35b1 0%, #9575cd 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: TitilliumWeb-Bold, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10);
}
.educators-name-text {
    flex: 1 1 auto;
    min-width: 0;
}
.educators-name-email {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.educators-name-email .material-symbols-outlined {
    font-size: 0.92rem !important;
    color: #9ca3af;
}

.educators-text-muted {
    color: #6b7280;
}

/* Cella telefono */
.educators-phone-cell {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1f2937;
    font-weight: 500;
}
.educators-phone-cell .material-symbols-outlined {
    font-size: 1rem !important;
    color: #5e35b1;
}

/* Stato attivo/storico - centrato in cella 36x36 */
.educators-active-on,
.educators-active-off {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    line-height: 1;
}
.educators-active-on .material-symbols-outlined {
    color: #45823a;
    font-size: 1.4rem !important;
}
.educators-active-off .material-symbols-outlined {
    color: #9ca3af;
    font-size: 1.4rem !important;
}

/* Riga educatore "storico" (active=False) */
.grid-container .row.record.is-inactive {
    opacity: 0.65;
    background-color: #fafbfc !important;
}
.grid-container .row.record.is-inactive:hover {
    opacity: 1;
}

/* Empty state */
.educators-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    background: #fafbfc;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    margin-top: 20px;
}
.educators-empty-state .material-symbols-outlined {
    font-size: 3.5rem !important;
    display: block;
    margin-bottom: 8px;
    opacity: 0.6;
}
