body{
    font-family: 'Noto Sans', Georgia, Helvetica, sans-serif;
}

#loginform{

    margin: 0 auto;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    width: 60%;

}

.badge-cert-valid   { background:#198754; color:#fff; border-radius:999px; padding:6px 12px; font-weight:600; }
.badge-cert-expired { background:#ffc107; color:#000; border-radius:999px; padding:6px 12px; font-weight:600; }
.badge-cert-missing { background:#dc3545; color:#fff; border-radius:999px; padding:6px 12px; font-weight:600; }
.cert-banner {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
}

.cert-valid   { background: #198754; color: #fff; }
.cert-expired { background: #ffc107; color: #000; }
.cert-missing { background: #dc3545; color: #fff; }

.corso-row.attivo + .corso-descrizione .descrizione-box {
    font-weight: bold;
}

/* evidenza selezione nella modale */
  #docentiResults .is-selected{  
    border-color: rgba(13,110,253,.35);
  }
  #docentiResults .docente-selected {
  background-color: #efb2b3;    
  color: #000;
  font-weight: 500;
}

   
.bulk-mail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(2px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bulk-mail-overlay.d-none {
    display: none !important;
}
.bulk-mail-box {
    min-width: 320px;
    max-width: 460px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.bulk-mail-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px auto;
    border: 4px solid #f1f3f5;
    border-top: 4px solid #ffc107;
    border-radius: 50%;
    animation: bulkSpin 0.9s linear infinite;
}
.bulk-mail-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.bulk-mail-text {
    color: #6c757d;
}
@keyframes bulkSpin {
    to { transform: rotate(360deg); }
} 

.btn-mail-bulk {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.95rem;
    background: #fffdf7;
    color: #3b3b3b;
    border: 1px solid #f0c54d;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn-mail-bulk:hover {
    background: #fff8e1;
    border-color: #d9aa1f;
    color: #1f1f1f;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
    transform: translateY(-1px);
}

.btn-mail-bulk:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(240, 197, 77, 0.22);
}

.btn-mail-bulk:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

.btn-mail-bulk i {
    color: #c79000;
    font-size: 0.95rem;
}

.btn-mail-bulk .mail-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f0c54d;
    color: #2f2a1d;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}