﻿/* ── Hero ────────────────────────────────────────────── */
.sw-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 0.35rem 0.35rem 0 0;
    padding: 1.5rem 2rem;    
    color: #fff;
}

    .sw-hero .sw-icon-wrapper {
        width: 100px;
        height: 100px;
        background: rgba(255,255,255,0.12);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

.sw-badge {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.3em 0.75em;
    border-radius: 50px;
}

.sw-meta span {
    font-size: 0.92rem;
    opacity: 0.75;
    margin-right: 1.25rem;
}

    .sw-meta span i {
        margin-right: 0.3rem;
    }

.release-notes-btn {
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    transition: all 0.2s;
}

    .release-notes-btn:hover {
        background: rgba(255,255,255,0.15);
        border-color: #fff;
        color: #fff;
    }

/* ── Collapsible header ──────────────────────────────── */
.card-table-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    user-select: none;
}

    .card-table-header:hover {
        background-color: #eaecf4;
    }

    .card-table-header .toggle-icon {
        transition: transform 0.25s ease;
    }

    .card-table-header.collapsed .toggle-icon {
        transform: rotate(-90deg);
    }

/* ── Table moderna ───────────────────────────────────── */
#table-body-wrapper {
    background-color: #fff;
}

/* Thead scuro con gradiente */
#grid-selection thead tr {
    background: linear-gradient(90deg, #1a1a2e 0%, #0f3460 100%);
}

#grid-selection thead th {
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none !important;
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

    /* Icone di ordinamento bootgrid su thead */
    #grid-selection thead th a,
    #grid-selection thead th a:hover {
        color: rgba(255,255,255,0.85) !important;
        text-decoration: none;
    }

    #grid-selection thead th .icon {
        color: rgba(255,255,255,0.6);
    }

/* Righe body */
#grid-selection tbody tr {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    border-bottom: 1px solid #f0f2f8;
}

    #grid-selection tbody tr:nth-child(odd) {
        background-color: #fafbff;
    }

    #grid-selection tbody tr:nth-child(even) {
        background-color: #ffffff;
    }

    #grid-selection tbody tr:hover {
        background-color: #eef1fb !important;
        box-shadow: inset 3px 0 0 #4e73df;
    }

    #grid-selection tbody tr.active {
        background-color: #dde4f7 !important;
        box-shadow: inset 3px 0 0 #2e59d9;
    }

#grid-selection tbody td {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-top: none !important;
    color: #3d3d5c;
}

/* Link download file */
.file-download-link {
    color: #2e59d9;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

    .file-download-link:hover {
        color: #1a3a9f;
        text-decoration: underline;
    }

    .file-download-link .fa-file-archive {
        color: #4e73df;
        opacity: 0.8;
    }

/* Bootgrid footer (paginazione) */
.bootgrid-footer {
    background-color: #f8f9fc;
    border-top: 1px solid #e3e6f0;
    padding: 0.5rem 1rem;
}

    .bootgrid-footer .pagination > li > a,
    .bootgrid-footer .pagination > li > span {
        color: #4e73df;
        border-color: #e3e6f0;
        font-size: 0.82rem;
        padding: 0.3rem 0.65rem;
    }

    .bootgrid-footer .pagination > .active > a,
    .bootgrid-footer .pagination > .active > span {
        background-color: #4e73df;
        border-color: #4e73df;
        color: #fff;
    }

    .bootgrid-footer .pagination > li > a:hover {
        background-color: #eaecf4;
        color: #2e59d9;
    }

    .bootgrid-footer .infos {
        font-size: 0.82rem;
        color: #858796;
        line-height: 2rem;
    }

/* Checkbox selezione */
#grid-selection .select-box {
    cursor: pointer;
    width: 15px;
    height: 15px;
    accent-color: #4e73df;
}

/* Loading row */
#grid-selection .loading,
#grid-selection .no-results {
    text-align: center;
    color: #858796;
    font-style: italic;
    padding: 2rem !important;
}

/* Fix: ripristina font-family Font Awesome dentro i tooltip di intro.js */
.introjs-tooltip .fas,
.introjs-tooltip .far,
.introjs-tooltip .fab,
.introjs-tooltip .fa,
.introjs-tooltipReferenceLayer .fas,
.introjs-tooltipReferenceLayer .far,
.introjs-tooltipReferenceLayer .fab,
.introjs-tooltipReferenceLayer .fa {
    font-family: "Font Awesome 5 Free" !important;
}

.introjs-tooltipReferenceLayer .fab {
    font-family: "Font Awesome 5 Brands" !important;
}

.introjs-tooltip {
    min-width: 315px !important;
    min-height: auto !important;
}

/*.badge-required {
    background-color: #16213e !important;
    color: white !important;
}*/