/**
 * STYLE-REPORT-NEW.CSS
 * CSS specifico per report formazione con finestre formative
 * Include: responsive mobile, background finestre, modale socio
 */

/* ===================================================================
   RESPONSIVE - Nome/Cognome su 2 righe mobile
   =================================================================== */

/* Desktop: mostra nome+cognome inline */
.nome-desktop {
    display: inline;
}

 

/* Mobile: nascondi email, mostra nome su 2 righe */
@media (max-width: 768px) {
    /* Nascondi colonna email */
    .col-email-hide-mobile {
        display: none;
    }
    
   
    /*
    .nome-line {
        font-weight: 600;
    }
    
    .cognome-line {
        font-weight: 400;
        opacity: 0.8;
    }*/
}

/* ===================================================================
   PALLINO STATUS - Cliccabile
   =================================================================== */

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Pallino cliccabile */
.status-clickable {
    cursor: pointer;
}

.status-clickable:hover {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.status-clickable:active {
    transform: scale(1.1);
}

/* Colori pallino */
.status-green {
    background-color: #28a745;
}

.status-yellow {
    background-color: #ffc107;
}

.status-red {
    background-color: #dc3545;
}

.status-gray {
    background-color: #999;
}

/* ===================================================================
   MODALE -
   =================================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    z-index: 10000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.modal-body {
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
}

/* ===================================================================
   HEADER SOCIO NEL MODALE  
   =================================================================== */

.socio-details {
    padding: 1em;
}

.socio-header {
    background: white;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.socio-main-info {
    margin-bottom: 1rem;

}

.socio-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #333;
}

/*
.socio-cf {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    color: #666;
}*/

.socio-membership {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
     
}

.membership-item {
    background: #f8fdf7;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.membership-item a {
    color: #333;
    text-decoration:none;
}

.membership-item a:hover {
    color: #666;

}

.membership-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.membership-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-top: 0.15rem;
}

.col-email  a {
    color: #51c149;
    text-decoration: none;
   
}

.email-cell a:hover {
    color: #3d8541;
}
/* ===================================================================
   FINESTRE FORMATIVE - Background colorato + bordo laterale
   =================================================================== */

.finestre-section {
    padding: 2rem;
}

 

.finestra-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.finestra-block:last-child {
    margin-bottom: 0;
}

 /* Finestra base - sfondo chiaro */
.finestra-block {
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Bordo laterale SUCCESS - verde */
.finestra-status-SUCCESS {
    border-left-color: #28a745;
}

/* Bordo laterale PENDING - giallo */
.finestra-status-PENDING {
    border-left-color: #ffc107;
}

/* Bordo laterale FAILURE - rosso */
.finestra-status-FAILURE {
    border-left-color: #dc3545;
}

/* Bordo laterale STARTED - verdino dashed */
.finestra-status-STARTED {
    border-left: 4px dashed #96efaa;
}

/* Header finestra */
.finestra-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: white;
}

.finestra-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/*
.finestra-crediti {
    background: #667eea;
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
}*/

/* Body finestra (corsi) 
.finestra-corsi {
    padding: 1rem 1.25rem;
    background: white;
}*/

.no-corsi {
    text-align: center;
    color: #999;
    font-style: italic;
    margin: 1rem 0;
}

/* Lista corsi   */
.corso-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
 

.corso-item {
    padding: 0.5em 1.5em;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/*
.corso-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.corso-item:first-child {
    padding-top: 0;
}*/

.corso-name {
    font-weight: 600;
    color: #333;
    align-items: center;
    flex-wrap: wrap;

}

.corso-provider {
    font-weight: 300;
    color: #666;
    
}

.corso-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.corso-date {
    color: #666;
    font-size: 0.95rem;
}

.corso-crediti {
    background: #a9b7f2;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

.corso-type {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* ===================================================================
   RESPONSIVE MODALE - Mobile
   =================================================================== */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .socio-header {
        padding: 1.5rem;
    }
    
    .socio-name {
        font-size: 1.6rem;
    }
    
    .socio-cf {
        font-size: 1rem;
    }
    
    .socio-membership {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .finestre-section {
        padding: 1.5rem;
    }
    
    .finestra-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }
    
    .finestra-header h3 {
        font-size: 1.1rem;
    }
    
    /*
    .finestra-crediti {
        align-self: flex-start;
    }
    
    .finestra-corsi {
        padding: 1rem 1.25rem;
    }*/
    
    .corso-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .corso-name {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .socio-header {
        padding: 1rem;
    }
    
    .socio-name {
        font-size: 1.4rem;
    }
    
    .finestre-section {
        padding: 1rem;
    }
    
    .finestra-header {
        padding: 0.75rem 1rem;
    }
    
    /*
    .finestra-corsi {
        padding: 0.75rem 1rem;
    }*/
}

/* ===================================================================
   TOOLTIP (per colonna St)
   ===================================================================

.col-attivo span[title]:hover {
    cursor: help;
} */

/* ===================================================================
   ACCESSIBILITÀ
   =================================================================== */

.status-clickable:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.modal-close:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Riduzione movimento per utenti con preferenze accessibilità 
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}*/

/* ===================================================================
   NO DATA MESSAGE
   =================================================================== */

.no-data-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.no-data-message p {
    font-size: 1.2rem;
    margin: 0;
}

/* ===================================================================
   HIDDEN CLASS (per ricerca)
   =================================================================== */

.socio-row.hidden {
    display: none;
}


/* Placeholder quando non c'è pallino */
.no-status {
    color: #999;
    font-size: 0.85rem;
}






/* ===================================================================
   FILTRI STATUS
   =================================================================== */

.status-filters-container {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem 0;
    flex-wrap: wrap;
    
}

.status-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.50rem 1rem;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: 18px;
    cursor: pointer;
    
    font-family: 'Ubuntu', sans-serif;
}

.status-filter-btn:hover {
    border-color: #94b2d7;
    color: #94b2d7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.status-filter-btn.active {
    background: #94b2d7;
    border-color: #94b2d7;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.filter-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.filter-green {
    color: #28a745;
}

.filter-yellow {
    color: #ffc107;
}

.filter-red {
    color: #dc3545;
}

.status-filter-btn.active .filter-icon {
    color: white;
}

/* ===== STILI PER FILTRI EMERITI E SOSPESI ===== */

/* Icona Emeriti - colore oro/dorato */
/*.filter-emeritus {
    color: #d4af37;
    font-weight: bold;
    font-style: normal;
}*/

/* Icona Sospesi - colore grigio scuro */
/*.filter-inactive {
    color: #666;
    font-weight: bold;
    font-style: normal;
}*/

/* Hover sui bottoni emeriti/sospesi 
.status-filter-btn[data-filter="emeritus"]:hover .filter-emeritus {
    color: #f0c941;
}

.status-filter-btn[data-filter="inactive"]:hover .filter-inactive {
    color: #888;
}

/* Bottone attivo emeriti 
.status-filter-btn[data-filter="emeritus"].active {
    background-color: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
}

.status-filter-btn[data-filter="emeritus"].active .filter-emeritus {
    color: #d4af37;
}*/

/* Bottone attivo sospesi 
.status-filter-btn[data-filter="inactive"].active {
    background-color: rgba(102, 102, 102, 0.15);
    border-color: #666;
}

.status-filter-btn[data-filter="inactive"].active .filter-inactive {
    color: #666;
}*/

/* Mobile */
@media (max-width: 768px) {
    .status-filters-container {
        gap: 0.5rem;
        margin: 1rem 0 1.5rem 0;
    }
    
    .status-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .status-filter-btn {
        flex: 1 1 100%;
        min-width: auto;
    }
}




/* ===================================================================
   STRISCE ALTERNATE DINAMICHE
   =================================================================== */

.socio-row.stripe-even {
    background-color: #f8f9fa !important;
}

.socio-row.stripe-odd {
    background-color: white !important;
}


 
/* ===================================================================================================================
                    ELENCO SOCI
   ============================================================================================================================= */
.icon-link-card {
    color: #28a745;
}

.icon-link-user {
    color: #28a745;
}
.icon-link-user {
    cursor: pointer;
}

.icon-link-user a {
    color: #28a745;
    text-decoration: none;
}

.icon-link-user :hover {
    transform: scale(1.1);
}
 
.status-clickable:active {
    transform: scale(1.1);
}