/* --- STILI PER PAGINA SUPPORTO & TAB --- */
.support-wrapper {
    max-width: 950px;
    margin: 0 auto 5rem auto;
    padding: 0 1.5rem;
}

/* --- BARRA TAB ORIZZONTALE FLUIDA (MOBILE FIRST) --- */
.tabs-nav {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;

    /* Rende lo scorrimento morbido e stile App nativa su iOS/Android */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    /* Nasconde la barra di scorrimento brutta da vedere mantenendo lo scroll */
    scrollbar-width: none;
    /* Firefox */
}

.tabs-nav::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari e Edge */
}

.tab-btn {
    flex: 0 0 auto;
    /* Impedisce ai bottoni di rimpicciolirsi */
    scroll-snap-align: start;

    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.tab-btn.active {
    background-color: var(--brand-orange);
    color: #ffffff;
    border-color: var(--brand-orange);
    box-shadow: 0 4px 12px var(--brand-orange-glow);
}

.tab-btn {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--brand-orange);
}

.tab-btn.active {
    background-color: var(--brand-orange);
    color: #ffffff;
    border-color: var(--brand-orange);
    box-shadow: 0 4px 12px var(--brand-orange-glow);
}

/* Gestione Pagine Tab */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.support-card h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Form e Elementi Interni */
.form-group {
    margin-bottom: 1.25rem;
 
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

/* Stato dei Servizi */
.status-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 14px;
}

.status-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.status-indicator.online {
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
    flex-shrink: 0;
}

.status-badge {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}







.support-card-disclaimer {
    padding: 1.25rem;
    border-left: 1px solid var(--brand-orange);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}



@media (max-width: 600px) {
    .support-card {
        padding: 1.5rem;
    }
}


/* --- DASHBOARD STATO SERVIZI MODERN / TECH --- */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.system-health-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.25);
}

/* Griglia a 2 colonne su desktop, 1 colonna su mobile */
.status-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* Card singolo servizio */
.status-card-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.status-card-item:hover {
    transform: translateY(-2px);
    border-color: var(--brand-orange);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.service-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-primary);
}

.service-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.status-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
    border-top: 1px dashed var(--border-color);
    padding-top: 0.8rem;
}

.status-card-footer strong {
    color: var(--text-primary);
}

 

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

 

/* --- TABELLA STATO SERVIZI --- */
.status-table-container {
    width: 100%;
    overflow-x: auto;
    /* Permette lo scroll orizzontale se lo schermo è troppo stretto */
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.status-table th {
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);

}

.status-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.status-table tr:last-child td {
    border-bottom: none;
}

.table-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Riutilizzo dei badge con i pallini pulsanti */
.pill-online {
    display: inline-flex;
    align-items: center;
    gap: 2em;
    
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dot-live {
    width: 7px;
    height: 7px;
    background-color: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 6px #28a745;
    animation: livePulse 2s infinite;
}

.pill-offline {
    display: inline-flex;
    align-items: center;
    gap: 2em;
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pill-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 2em;
    border: 1px solid rgb(196 220 53 / 25%);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dot-offline {
    width: 7px;
    height: 7px;
    background-color: #dc3545;
    border-radius: 50%;
    box-shadow: 0 0 6px #dc3545;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}









/* --- FINESTRA MODALE DINAMICA --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    /* Effetto vetro sfocato stile Apple */
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5em;
    animation: fadeInModal 0.25s ease-in-out;
}

.modal-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 750px;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    padding: 5em 3em;
   
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--brand-orange);
    color: #ffffff;
    border-color: var(--brand-orange);
}

.modal-content-body h3,
.modal-content-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-content-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
