:root 
{
    --active-color: #121417;
    --bg: #101215;
    --bg-alt: #17191c;
    --accent-main: #991A1E;
    --accent-glow: #991A1E66;
    --accent-green: #198754;
    --accent-green-glow: #19875466; 
    --accent-red: #f44336;
    --text: #e2e2e2;
    --text-light: #bfc1c9;
    --text-title: #e6edf3;
    --text-title-small: #8b949e;
    --radius: 14px;
    --transition: 0.40s cubic-bezier(.65, .2, .3, 1.15);
    --transition-fast: 0.25s cubic-bezier(.55, .14, .42, 1.35);
    --shadow: 0 8px 32px #000a, 0 1.5px 8px #15181b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.d-flex.flex-nowrap {
    height: 100vh;
}

/* SIDEBAR & RESPONSIVE SIDEBAR */

.sidebar {
    width: 280px;
    min-width: 220px;
    background: linear-gradient(130deg, var(--bg) 80%, var(--accent-glow) 140%);
    display: flex;
    flex-direction: column;
    padding: 28px 16px 0 16px;
    border-right: 2px solid var(--bg-alt);
    box-shadow: 2px 0 32px #1113172e;
    gap: 20px;
    z-index: 10;
    position: relative;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.25s cubic-bezier(.55, .14, .42, 1.35), min-width 0.25s cubic-bezier(.55, .14, .42, 1.35), padding 0.25s cubic-bezier(.55, .14, .42, 1.35), box-shadow 0.25s cubic-bezier(.55, .14, .42, 1.35), transform 0.25s cubic-bezier(.55, .14, .42, 1.35), opacity 0.25s cubic-bezier(.55, .14, .42, 1.35);
    will-change: width, min-width, padding, box-shadow, transform, opacity;
}

    /* SIDEBAR SCROLLBAR */
    .sidebar::-webkit-scrollbar {
        width: 7px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, var(--accent-glow), var(--bg-alt) 80%);
        border-radius: 5px;
        min-height: 32px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    /* SIDEBAR SHRINK / MINI MODE */
    .sidebar.shrink {
        width: 74px !important;
        min-width: 74px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden;
        transition: width 0.25s cubic-bezier(.55, .14, .42, 1.35), min-width 0.25s cubic-bezier(.55, .14, .42, 1.35), padding 0.25s cubic-bezier(.55, .14, .42, 1.35);
    }

        .sidebar.shrink .logo-full .logo-solo {
            max-height: 32px;
            margin: 0 auto;
            display: block;
        }

.logo .logo-full {
    display: block;
}

.logo .logo-solo {
    display: none;
}

.sidebar.shrink .logo .logo-full {
    display: none;
}

.sidebar.shrink .logo .logo-solo {
    display: block;
}

.sidebar.shrink .nav-item {
    justify-content: center !important;
    padding: 12px 0 !important;
    margin: 0 auto;
    gap: 0;
    text-align: center;
}

.sidebar.shrink .icon {
    width: 42px;
    height: 42px;
    font-size: 1.85rem !important;
    margin: 0 auto !important;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transform: none !important;
}

.sidebar.shrink .nav-item .label,
.sidebar.shrink .subnav,
.sidebar.shrink .subnav-item span,
.sidebar.shrink .chevron,
.sidebar.shrink .upgrade-box,
.sidebar.shrink .logout {
    display: none !important;
}

.sidebar.shrink .nav {
    gap: 8px !important;
}

.sidebar.shrink .nav-item:hover {
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* SIDEBAR RESPONSIVE & OVERLAY */
@media (max-width: 991.98px) {
    .sidebar {
        width: 280px;
        max-width: 80vw;
        min-width: 74px;
        padding-left: 7px;
        padding-right: 7px;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 11;
        box-shadow: 2px 0 32px #111317bb;
        background: linear-gradient(130deg, var(--bg) 80%, var(--accent-glow) 140%);
        transform: translateX(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s cubic-bezier(.55, .14, .42, 1.35), opacity 0.25s cubic-bezier(.55, .14, .42, 1.35), box-shadow 0.25s cubic-bezier(.55, .14, .42, 1.35);
        will-change: transform, opacity, box-shadow;
    }

        .sidebar.open {
            transform: translateX(0);
            opacity: 1;
            pointer-events: all;
        }

        .sidebar::before,
        .sidebar::after {
            display: none !important;
        }

    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(20, 22, 24, 0.83);
        z-index: 9;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s cubic-bezier(.55, .14, .42, 1.35);
    }

    .sidebar.open ~ .sidebar-overlay {
        opacity: 1;
        pointer-events: all;
    }

    .sidebar:not(.open) ~ .sidebar-overlay {
        opacity: 0;
        pointer-events: none;
    }

    .nav-item:hover,
    .nav-item.active:hover {
        background: none !important;
        box-shadow: none !important;
    }
}

/* LOGO & MOBILE SIDEBAR LOGO */

.logo {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: justify-content var(--transition-fast);
}

    .logo img {
        max-height: 48px;
        width: auto;
        display: block;
        filter: drop-shadow(0 0 16px var(--accent-glow));
        transition: max-height var(--transition-fast), filter var(--transition-fast);
    }

@media (max-width: 991.98px) {
    .logo {
        justify-content: flex-start !important;
        padding-left: 8px;
    }
}

/* CLOSE SIDEBAR BUTTON */

.btn-close-sidebar {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 13;
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    cursor: pointer;
    opacity: 0.9;
    user-select: none;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

    .btn-close-sidebar .material-icons-outlined {
        font-size: 1.6rem;
        color: inherit;
        display: block;
        margin: 0;
        line-height: 1;
        margin-top: 1px;
    }

    .btn-close-sidebar:hover {
        color: #fff !important;
        background: #161a1d;
    }

@media (max-width: 991.98px) {
    .btn-close-sidebar {
        display: flex;
    }
}

@media (min-width: 992px) {
    .btn-close-sidebar {
        display: none;
    }
}

/* NAVIGATION (SIDEBAR MENU + SUBNAV) */

.nav-dfend {
    display: flex;
    flex-direction: column !important;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: var(--radius);
    color: var(--text-light);
    position: relative;
    background: transparent;
    transition: background 0.18s, color 0.20s, box-shadow 0.21s, transform 0.22s;
    outline: none;
    cursor: pointer;
}

    .nav-item .icon {
        width: 38px;
        height: 38px;
        background: var(--bg-alt);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-light);
        font-size: 1.45rem;
        box-shadow: none;
        transition: background 0.20s, color 0.20s, box-shadow 0.20s, transform 0.22s;
    }

    .nav-item .material-icons-outlined {
        color: var(--accent-main);
    }

    .nav-item.active {
        color: var(--text);
    }

        .nav-item:hover,
        .nav-item.active:hover {
            background: #161a1d;
            box-shadow: 0 6px 28px rgba(153, 26, 30, 0.10); 
            transform: scale(1.01); 
        }

            .nav-item:hover .icon {
                background: var(--text-light);
                color: #fff;
                box-shadow: 0 0 16px 2px var(--accent-glow);
                transform: scale(1.09) rotate(-6deg);
            }

    .nav-item .label {
        flex: 1;
    }

    .nav-item .chevron {
        margin-left: auto;
        color: var(--accent-main);
        transition: transform 0.25s;
    }

.has-sub.open .chevron {
    transform: rotate(180deg);
}
/*.subnav-item.active::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 8px;
    background: var(--accent-main);
    box-shadow: 0 0 8px var(--accent-glow);
    opacity: 0.85;
}*/

.subnav-item.active {
    background: #181c1e;
    color: var(--text-title); 
    box-shadow: inset 3px 0 0 var(--accent-main);
    border-radius: 12px; 
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 8px;
    background: var(--accent-main);
    box-shadow: 0 0 8px var(--accent-glow);
    opacity: 0.85;
}*

.nav-item:focus-visible {
    outline: 2.5px solid var(--accent-main);
    outline-offset: 2px;
}

/* SUBMENU */
.subnav {
    background: none;
    margin-left: 0;
    padding: 0;
    position: relative;
    border-left: none;
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
    will-change: max-height, padding;
}

.has-sub.open + .subnav {
    max-height: 2000px;
    padding-bottom: 6px;
}

.subnav::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, #1a2326 20%, var(--accent-main) 100%);
    opacity: 0.13;
    border-radius: 3px;
}

.subnav-item {
    display: flex;
    align-items: center;
    /*gap: 10px;*/
    /*altrimenti sfora*/
    padding: 9px 0 9px 44px;
    color: var(--text-light);
    font-size: 1.1rem;
    border-radius: 8px;
    transition: color var(--transition-fast), background var(--transition-fast);
    position: relative;
}

    .subnav-item .material-icons-outlined {
        font-size: 1.3em;
        color: var(--accent-main);
        background: none;
        margin-right: 10px;
    }

    .subnav-item:hover {
        background: #181c1e;
        color: #fff;
        box-shadow: inset 2px 0 0 #991A1E;
        border-radius: 12px;
    }
   

/* MAIN AREA (CONTENT CONTAINER) */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    background: var(--bg);
}

.main::-webkit-scrollbar {
    width: 7px;
}

.main::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-glow), var(--bg-alt) 80%);
    border-radius: 5px;
    min-height: 32px;
}

.main::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 900px) {
    .main {
        padding: 12px;
    }
}

@media (max-width: 800px) {
    .main {
        padding: 10px;
    }
}

/* TOPBAR (HEADER) */
.topbar {
    display: flex;
    align-items: center;
    z-index: 10;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 20px;
    border-radius: 19px;
    padding-right: 20px;
    padding-left: 10px;
    background: rgba(16, 18, 21, 0.74);
    backdrop-filter: blur(7px);
    box-shadow: 0 1px 24px #16181f24;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.welcome-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.welcome {
    font-size: 1.27rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    letter-spacing: -0.01em;
    transition: font-size var(--transition-fast);
}

.subtitle {
    font-size: 0.91rem;
    color: var(--text-light);
    margin-top: 2px;
    font-weight: 400;
    transition: font-size var(--transition-fast);
}

@media (max-width: 991.98px) {

    .topbar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        margin: 12px;
        border-radius: 16px;
        background: var(--active-color) !important;
        box-shadow: 0 0 12px #000a;
        flex-wrap: nowrap;
    }

    .search-wrapper {
        flex: 1 1 auto;
        width: 100%;
        display: flex;
    }

    .search {
        width: 100%;
        max-width: 100%;
    }

        .search input {
            width: 100%;
            padding: 10px 38px 10px 12px;
            font-size: 0.95rem;
        }

.topbar-right{
    gap: 0px;
}

}

@media (max-width: 600px) {

    .topbar {
        gap: 6px;
        padding: 8px 10px;
    }

    .search {
        padding: 8px 34px 8px 10px;
        font-size: 0.9rem;
    }
}

/* HAMBURGER MENU (MOBILE) */

.btn-hamburger {
    background: none;
    border: none;
    outline: none;
    border-radius: 8px;
    font-size: 2.1rem;
    padding: 8px;
    box-shadow: none;
    transition: background var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-hamburger:hover {
        background: #161a1d;
        color: #fff;
    }

/* AVATAR (PROFILE ICON) */

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: -17px;
    border: 2px solid var(--accent-main);
    box-shadow: 0 0 12px 0 var(--accent-main);
    transition: box-shadow var(--transition-fast), filter var(--transition-fast), width var(--transition-fast), height var(--transition-fast);
}

@media (max-width: 600px) {
    .avatar {
        width: 38px;
        height: 38px;
    }
}

/* SEARCH FIELD (TOPBAR & EXPANDED) */

.search {
    position: relative;
    width: 370px;
    max-width: 370px;
    transition: width var(--transition-fast), max-width var(--transition-fast);
}

    .search input {
        width: 100%;
        padding: 12px 40px 12px 18px;
        border: 1px solid var(--accent-green-glow);
        box-shadow: 0 0 4px 0 var(--accent-green-glow);
        border-radius: 18px;
        background: var(--bg-alt);
        color: var(--text);
        font-size: 1.07rem;
        font-weight: 500;
        transition: border var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    }

        .search input::placeholder {
            color: var(--text-light);
            opacity: 1;
        }

        .search input:focus {
            border: 1.5px solid var(--accent-glow);
            box-shadow: 0 0 10px 0 var(--accent-main);
            background: #15191e;
            outline: none;
        }

    .search .material-icons-outlined {
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-light);
        font-size: 1.45rem;
    }



/* NOTIFICATION ICON + BADGE */

.notif {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 6px;
    background: transparent;
    box-shadow: none;
    transition: background var(--transition-fast), border var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), filter var(--transition-fast);
}

    .notif:hover,
    .notif:focus-visible {
        background: var(--active-color);
        border-color: var(--accent-main);
        box-shadow: 0 0 10px var(--accent-main), 0 0 0 2px #0007;
        transform: scale(1.05);
    }

    /* Icone */
    .notif .material-icons-outlined {
        transition: filter var(--transition-fast);
    }

    /* Badge */
    .notif .badge {
        position: absolute;
        top: -1px;
        right: -3px;
        background: var(--accent-red);
        color: #fff;
        font-size: 0.75rem;
        padding: 2px 5px;
        border-radius: 50%;
        font-weight: 700;
        box-shadow: 0 1.5px 5px #0003;
        z-index: 2;
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }

    .notif:hover .badge,
    .notif:focus-visible .badge {
        transform: scale(1.13) rotate(-9deg);
        box-shadow: 0 2px 14px var(--accent-red);
    }


.drop-notifications {
    min-width: 380px;
    max-height: 600px;
    overflow-y: auto;
    padding: 0;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.75), 0 2px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

    .drop-notifications .dropdown-item {
        padding: 0;
        background: transparent;
        color: inherit;
    }

        .drop-notifications .dropdown-item:hover,
        .drop-notifications .dropdown-item:active {
            background: transparent;
        }

/* Header */
.drop-notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-alt);
    border-bottom: 1px solid #2c2d31;
    border-radius: var(--radius) var(--radius) 0 0;
}

    .drop-notifications-header h6 {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        color: var(--text);
    }

    .drop-notifications-header .notif-total {
        background: var(--accent-main);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        border-radius: 10px;
        padding: 2px 8px;
        margin-left: 6px;
    }

    .drop-notifications-header .mark-all {
        font-size: 13px;
        font-weight: 600;
        color: var(--accent-green);
        cursor: pointer;
        transition: color var(--transition-fast);
    }

        .drop-notifications-header .mark-all:hover {
            color: #29b36b;
        }

/* Date */
.drop-notifications .notif-date {
    padding: 8px 18px;
    background: var(--bg-alt);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-title-small);
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Card */
.dfend-notification .notif-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    margin: 0 0 14px 0;
    background: var(--bg-alt);
    border-left: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--transition-fast), border var(--transition-fast), box-shadow var(--transition-fast);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.03);
}

    /* Unread */
    .dfend-notification .notif-card.unread {
        border-left-color: var(--accent-main);
        background: var(--bg-alt);
    }

    /* Read */
    .dfend-notification .notif-card.read {
        border-left-color: #2c2d31;
        background: var(--bg-alt);
        opacity: 0.92;
    }

    /* Hover */
    .dfend-notification .notif-card.unread:hover {
        background: #1d1f22;
    }

    .dfend-notification .notif-card.read:hover {
        background: #1e2023;
    }

/* Icons */
.dfend-notification .notif-left {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.dfend-notification .notif-icon {
    font-size: 22px;
    line-height: 1;
    color: var(--text-light);
    transition: none !important;
}

.drop-notifications .material-icons-outlined {
    filter: none !important;
    transition: none !important;
    color: inherit !important;
}

.dfend-notification .notif-icon.info {
    color: #9aa0a6 !important;
}

.dfend-notification .notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dfend-notification .notif-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 2px;
}

.dfend-notification .notif-message {
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.dfend-notification .notif-card.unread .notif-message {
    color: #b7bcc2;
}

    .dfend-notification .notif-card.read .notif-title, 
    .dfend-notification .notif-card.read .notif-message {
        color: var(--text-title-small);
        font-style: italic;
    }

.dfend-notification .notif-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-title-small);
}

.dfend-notification .notif-time {
    font-style: italic;
    color: var(--text-title-small);
    letter-spacing: 0.4px;
}

.dfend-notification .notif-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

    .dfend-notification .notif-link:hover {
        color: #29b36b;
    }

.drop-notifications .text-muted {
    padding: 14px 16px;
    color: var(--text-title-small) !important;
    font-size: 13px;
    text-align: center;
}

/* AUTOCOMPLETE & DROPDOWN MENU */
.ui-autocomplete,
.dropdown-menu {
    z-index: 1301;
    background: var(--bg-alt) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px #000a !important;
    padding: 10px !important;
    border: none !important;
}

/* DROPDOWN SWITCH AZIENDA */
.drop-company {
    min-width: 340px;
    padding: 0;
    border-radius: var(--radius);
    background: var(--bg);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.75), 0 2px 12px rgba(0,0,0,0.4), inset 0 0 1px rgba(255,255,255,0.04);
    overflow-y: auto;
    max-height: 500px;
}

.drop-company-header {
    padding: 14px 18px;
    background: var(--bg-alt);
    border-bottom: 1px solid #2c2d31;
    border-radius: var(--radius) var(--radius) 0 0;
}

    .drop-company-header h6 {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        color: var(--text);
    }

.company-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    margin: 0 0 14px 0;
    background: var(--bg-alt);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    border-left: 3px solid transparent;
    border-left-color: #2c2d31;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: inset 0 0 1px rgba(255,255,255,0.03);
    transition: background var(--transition-fast), border var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.company-card:hover {
    background: #1d1f22;
    border-left-color: var(--accent-main);
    transform: translateX(3px);
}

.company-icon {
    font-size: 22px;
    line-height: 1;
    color: var(--accent-main) !important;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.06));
}

    .company-card:last-child {
        margin-bottom: 0;
    }

    .company-card:hover {
        background: #1e2023;
    }

.company-left {
    display: flex;
    align-items: flex-start;
}

.company-icon {
    font-size: 22px;
    line-height: 1;
    color: var(--text-light);
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.06));
}

.company-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.company-card.active {
    border-left-color: var(--accent-main);
    background: #1e2023; 
    opacity: 1; 
    transform: translateX(2px);
}

/* CARDS & CARD HOVER */
.card {
    background: linear-gradient(135deg, var(--bg) 80%, #2a0d12 140%);
    border: 2px solid var(--bg-alt);
    border-radius: 14px;
    color: var(--text);
    box-shadow: 0 6px 24px 0 rgba(32, 10, 16, 0.45), 0 2px 8px 0 rgba(0, 0, 0, 0.44);
    padding: 25px;
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 670px;
}

    .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px 0 rgba(32, 10, 16, 0.59), 0 2px 16px 0 rgba(236, 49, 68, 0.06);
    }

/* RESPONSIVE FIXES FOR ROWS */

@media (max-width: 767.98px) {
    .row > [class^="col-"]:not(:last-child) {
        margin-bottom: 1.5rem;
    }

    .dfend-footer .row > div {
        text-align: center !important;
    }

    .dfend-footer .footer-logo {
        margin: 0 auto;
    }

    .dfend-footer .d-flex.flex-md-row {
        flex-direction: column !important;
        align-items: center;
    }
}

/* FILTERS & SELECT */

.filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.filter {
    flex: 1;
    position: relative;
}

    .filter label {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-light);
        margin-bottom: 4px;
        display: block;
    }

    .filter select {
        width: 100%;
        padding: 8px 12px;
        border-radius: var(--radius);
        border: none;
        background: var(--bg-alt);
        color: var(--text);
        appearance: none;
        font-size: 1rem;
    }

    .filter::after {
        content: '▼';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-light);
        pointer-events: none;
    }

/* BUTTONS & HOVER STATES */

button,
.btn {
    background: var(--accent-main);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 22px;
    transition: opacity var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), filter var(--transition-fast);
    cursor: pointer;
}

    button:hover,
    .btn:hover {
        opacity: 0.93;
        transform: translateY(-2px) scale(1.04);
        filter: brightness(1.06);
    }

/* SCROLLBAR STYLES*/

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-glow), var(--bg-alt) 80%);
    border-radius: 5px;
    min-height: 32px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* SELECTION COLOR */

::selection {
    background: var(--accent-main);
    color: #fff;
}

/* SEARCH WRAPPER (EXPANDED, ICON) */

.search-wrapper {
    position: relative;
}

.search-icon {
    cursor: pointer;
    padding: 6px;
    border-radius: 14px;
    background: var(--active-color);
    border: 1px solid var(--accent-main);
    box-shadow: 0 0 6px var(--accent-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

    .search-icon:hover {
        box-shadow: 0 0 10px var(--accent-main);
        transform: scale(1.05);
    }

.search-expanded {
    position: absolute;
    top: -6px;
    right: 0;
    width: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    padding: 10px 0;
    border-radius: 14px;
    border: 1px solid var(--accent-main);
    box-shadow: 0 0 8px var(--accent-main), inset 0 0 6px #0e1a1850;
    transition: width var(--transition-fast), opacity var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
    backdrop-filter: blur(4px);
}

.search-wrapper.active .search-expanded {
    width: 270px;
    opacity: 1;
    pointer-events: all;
    padding: 10px 16px;
}

.search-expanded input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.3s ease, filter 0.3s ease;
}

    .search-expanded input::placeholder {
        color: var(--text-light);
        font-weight: 400;
        letter-spacing: 0.03em;
    }

    .search-expanded input:focus {
        filter: brightness(1.15);
    }

/* FOOTER LINKS & BRAND HIGHLIGHT */

.footer-right a:hover {
    transform: scale(1.15);
    text-shadow: 0 0 8px var(--accent-main);
}

.brand-highlight {
    color: var(--accent-main);
    text-shadow: 0 0 6px rgba(153, 26, 30, 0.25);
}

/* KPI */
.kpi-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #101215 85%, #1b0c0f 140%);
    border-radius: 20px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(153, 26, 30, 0.16);
    border-bottom: 4px solid transparent;
    min-height: 10px;
    padding: 20px 20px 18px;
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid #17191c;
    transition: all 0.25s ease-in-out;
}

    .kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(153, 26, 30, 0.3);
    }

/* ROW DETTAGLI (ICONA + LABEL) */
.kpi-details-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
    width: 100%;
}

/* ICONA TONDA */
.kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #222528;
    box-shadow: inset 0 0 6px #000, 0 0 10px rgba(153, 26, 30, 0.2), 0 2px 6px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

    .kpi-icon .material-icons-round {
        font-size: 1.7rem;
        color: #fff;
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.15), 0 0 4px rgba(19, 223, 147, 0.1);
    }

/* VARIANTI DI BACKGROUND ICON */
.bg-red {
    background: linear-gradient(135deg, #64161c 60%, #9e2a3e 120%) !important;
    color: #d24a5a !important;
}

.bg-acqua {
    background: linear-gradient(135deg, #125157 60%, #1db6a0 120%) !important;
    color: #8bf2e0 !important;
}

.bg-magenta {
    background: linear-gradient(135deg, #3d1330 60%, #8a2e70 120%) !important;
    color: #e3a0d3 !important;
}

.bg-yellow {
    background: linear-gradient(135deg, #5b4a1c 60%, #c9a232 120%) !important;
    color: #f4db9c !important;
}

.bg-gray {
    background: linear-gradient(135deg, #444a55 60%, #686e78 120%) !important;
    color: #d0d3d8 !important;
}

/* VALORE PRINCIPALE */
.kpi-main {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: #e6edf3;
    text-shadow: none;
}

/* COLORI KPI TESTO */
.kpi-red {
    color: #b02a37;
}

.kpi-acqua {
    color: #198754;
}

.kpi-magenta {
    color: #8a2e70;
}

.kpi-yellow {
    color: #c28f00;
}

.kpi-gray {
    color: #868c96;
}

/* LABEL SOTTO NUMERO */
.kpi-label {
    margin-top: 1px;
    font-size: 1.05rem;
    color: #d8d9db;
    font-weight: 500;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-shadow: none;
    line-height: 1.1;
    width: 100%;
}

/* INFO ICON */
.kpi-info {
    font-size: 1.4rem !important;
    margin-left: 4px;
    color: var(--text-title) !important;
    cursor: pointer;
    vertical-align: text-bottom;
    transition: color 0.2s, opacity 0.2s;
}

    .kpi-info:hover {
        color: #d24a5a !important;
        opacity: 1;
    }

/* VALORE VARIAZIONE */
.kpi-delta {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    background: #26292f;
    color: #a3a6b2;
    border-radius: 10px;
    padding: 2px 5px 2px 8px;
    min-width: 48px;
    height: 28px;
    line-height: 1;
    transition: background 0.2s ease;
}

    .kpi-delta .material-icons-round {
        font-size: 0.9rem !important;
        margin-left: 4px;
        vertical-align: middle;
    }

    .kpi-delta.kpi-positive {
        background: #17382c;
        color: #13df93;
    }

    .kpi-delta.kpi-negative {
        background: #431319;
        color: #d24a5a;
    }

    .kpi-delta.kpi-alert {
        background: #9b242d;
        color: #fff;
    }

    .kpi-delta.neutral {
        background: #26292f;
        color: #bfc1c9;
    }

/* BORDO SOTTOCARD */
.border-accent-red {
    border-bottom: 4px solid #b02a37;
}

.border-accent-acqua {
    border-bottom: 4px solid #198754;
}

.border-accent-magenta {
    border-bottom: 4px solid #8a2e70;
}

.border-accent-yellow {
    border-bottom: 4px solid #c28f00;
}

.border-accent-gray {
    border-bottom: 4px solid #868c96;
}


@media (max-width: 1700px) {
    .kpi-main {
        font-size: 1.75rem;
    }

    .kpi-card {
        min-height: 90px;
        padding: 13px 8px 13px 8px;
    }
}

@media (max-width: 1400px) {
    .kpi-card {
        min-height: 76px;
        padding: 10px 6px 10px 6px;
    }

    .kpi-main {
        font-size: 1.5rem;
    }
}

@media (max-width: 900px) {
    .kpi-card {
        min-height: 60px;
        padding: 7px 2px 7px 2px;
    }

    .kpi-main {
        font-size: 1.16rem;
    }
}

/* AI RISK */
.ai-risk-card {
    position: relative;
    padding-top: 22px;
    padding-bottom: 22px;
}

    .ai-risk-card .kpi-logo {
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12), inset 0 -2px 3px rgba(0, 0, 0, 0.75), 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 14px rgba(153, 26, 30, 0.22);
    }

.ai-risk-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    position: relative;
}

.ai-logo-wrapper {
    position: absolute;
    left: 80px; 
    top: 50%;
    transform: translateY(-50%);
    width: 70px; 
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.ai-logo-img {
    width: 44px;
    height: 44px;
    color: #fff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.15), 0 0 4px rgba(19, 223, 147, 0.1);
}

.ai-risk-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ai-risk-label {
    margin-top: 2px;
    font-size: 1.05rem;
    color: #d8d9db;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ai-low .kpi-logo {
    background: linear-gradient(135deg, #162d20 60%, #128668 120%) !important;
    color: #00b38a !important;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.55), 0 0 6px rgba(0, 179, 138, 0.18), 0 2px 4px rgba(0, 0, 0, 0.30) !important;
}

.ai-low .kpi-main {
    color: #00b38a !important;
}

.ai-low {
    border-bottom-color: rgba(0, 179, 138, 0.60) !important;
}

.ai-medium .kpi-logo {
    background: linear-gradient(135deg, #352b17 60%, #b2985e 120%) !important;
    color: #b2985e !important;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.55), 0 0 6px rgba(178, 152, 94, 0.18), 0 2px 4px rgba(0, 0, 0, 0.30) !important;
}

.ai-medium .kpi-main {
    color: #b2985e !important;
}

.ai-medium {
    border-bottom-color: rgba(178, 152, 94, 0.60) !important;
}

.ai-high .kpi-logo {
    background: linear-gradient(135deg, #361d1d 60%, #b43737 120%) !important;
    color: #b43737 !important;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.55), 0 0 6px rgba(180, 55, 55, 0.18), 0 2px 4px rgba(0, 0, 0, 0.30) !important;
}

.ai-high .kpi-main {
    color: #b43737 !important;
}

.ai-high {
    border-bottom-color: rgba(180, 55, 55, 0.60) !important;
}

.ai-critical .kpi-logo {
    background: linear-gradient(135deg, #261220 60%, #8600a6 120%) !important;
    color: #b062cc !important;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.55), 0 0 6px rgba(134, 0, 166, 0.18), 0 2px 4px rgba(0, 0, 0, 0.30) !important;
}

.ai-critical .kpi-main {
    color: #b062cc !important;
}

.ai-critical {
    border-bottom-color: rgba(134, 0, 166, 0.60) !important;
}

.ai-risk-card .logo-dark {
    display: none;
}

.ai-risk-card .logo-light {
    display: inline-block;
}

    /*Animazione Mano che saluta*/
    .wave {
    display: inline-block;
    animation: wave-animation 2s ease-in-out 1;
    transform-origin: 70% 70%;
    /* Punto di rotazione per simulare il saluto */
}

@keyframes wave-animation {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(14deg);
    }

    30% {
        transform: rotate(-8deg);
    }

    45% {
        transform: rotate(14deg);
    }

    60% {
        transform: rotate(-4deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.dfend-section-header {
    padding-left: 6px;
}

.dfend-section-title {
    color: var(--text-title);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
    text-align: center;
}

.dfend-section-subtitle {
    color: var(--text-title-small);
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.dfend-filterbar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 4px;
    padding-bottom: 8px;
}

.dfend-filter-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.8px;
    font-weight: 500;
    text-transform: uppercase;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
}

.dfend-filter-icon {
    color: var(--accent-main);
    font-size: 14px;
}

.dfend-filter-separator {
    color: #444;
    font-weight: 400;
    margin: 0 4px;
}

.dfend-filter-date-range {
    color: var(--text-title-small);
    font-weight: 500;
    font-size: 13px;
}

.dfend-time-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    justify-content: flex-end;
    width: 100%;
}

.dfend-time-filter {
    background: var(--bg-alt);
    border: 1px solid #2a2c2e;
    border-radius: 14px;
    padding: 9px 20px;
    color: var(--text-title);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    text-align: center;
    text-transform: uppercase;
    user-select: none;
    min-width: 86px;
}

    .dfend-time-filter:hover {
        background: var(--bg);
        border: 0.1px solid var(--accent-main);
        box-shadow: 0 0 4px var(--accent-main), inset 0 0 6px #0e1a1850;
        transform: scale(1.05);
    }

    .dfend-time-filter.active {
        background: var(--bg);
        border: 0.1px solid var(--accent-main);
        box-shadow: 0 0 4px var(--accent-main);
        font-weight: 600;
        transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    }

@media (max-width: 768px) {
    .dfend-filterbar {
        align-items: center;
        text-align: center;
    }

    .dfend-filter-label-group {
        justify-content: center;
    }

    .dfend-time-filter-group {
        justify-content: center;
    }
}

.dfend-section-header::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 10px;
    background: linear-gradient(to right, transparent, var(--accent-main), transparent);
    filter: drop-shadow(0 0 4px var(--accent-main));
    opacity: 0.7;
}

.cyber-textarea {
    background: #E2E2E2; 
    border: 1px solid rgba(162, 50, 58, 0.35); 
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.08); 
    color: #2B2B2B;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.25s ease;
    outline: none;
}

    .cyber-textarea::placeholder {
        color: #6C6E75;
        opacity: 0.7;
    }

    .cyber-textarea:focus {
        border: 1px solid #A2323A; 
        box-shadow: 0 0 8px rgba(162, 50, 58, 0.25), inset 0 0 4px rgba(0, 0, 0, 0.05);
        background: #E6E6E6; 
        color: #2B2B2B;
    }

.form-label {
    font-weight: 500; 
    text-align: center;
    display: block;
    margin-bottom: 0.5rem;
    margin-left: -21px;
    font-size: 1rem;
    text-shadow: 0 0 4px rgba(0, 255, 200, 0.15); 
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* SWEET ALERT */
.swal2-popup.swal-dark {
    background: linear-gradient(135deg, var(--bg) 80%, #2a0d12 140%);
    color: #e3dcdc;
    border-radius: 20px;
    border: 2px solid #991a1e55;
    padding: 38px 32px 28px 32px !important;
    max-width: 580px;
    font-family: 'Inter', 'Roboto', sans-serif;
    overflow: hidden;
    text-align: center !important;
}

    /* ICONA */
    .swal2-icon.swal2-info,
    .swal2-popup.swal-dark .swal2-icon.swal2-warning {
        background: radial-gradient(circle at center, #e6526b0a 80%);
        border: 2px solid #991A1E;
        color: #e16574;
        text-shadow: 0 0 6px #991a1e44;
        box-shadow: 0 0 0 3px #991a1e10, 0 4px 28px 0 #991A1E33, inset 0 2px 2px #2a1b1e44;
    }

/* TITOLO */
.swal2-title {
    color: #fff;
    font-size: 1.85em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.2em;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 14px #e6526b33;
}

    .swal2-title::before {
        content: "";
        display: none;
    }

/* CONTENUTO */
.swal2-html-container {
    font-size: 0.98em;
    text-align: center !important;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 5px;
    line-height: 1.55;
}

/* BLOCCO */
.violation-entry {
    background: linear-gradient(135deg, #0e1012 60%, #12181d 140%);
    border: 1.5px solid #39c6e155;
    border-radius: 16px;
    padding: 20px 26px 18px;
    margin: 16px 0 24px 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

/* HEADER */
.violation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    font-weight: 600;
    color: #ffffffde;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* SERVIZIO */
.violation-service {
    font-weight: 800;
    font-size: 1.02em;
    color: #ffffffde;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* RIGA */
.violation-row {
    display: flex;
    align-items: flex-start; 
    gap: 10px;
    font-size: 0.96em;
    color: #e6e6e6;
    padding-left: 0; 
    margin-left: 0;
}

/* ICONE */
    .violation-row .material-icons-outlined {
        font-size: 1.2rem;
        width: 1.4em;
        height: 1.4em;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        vertical-align: top;
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
        margin: 0; 
        padding: 0; 
    }

/* TESTO MULTILINEA */
.violation-text {
    text-align: left;
    line-height: 1.5;
    word-break: break-word;
    max-width: 100%;
    margin-top: 1px;
}

/* STATO */
.remediation-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.95em;
    color: #58d38d;
    text-shadow: 0 0 4px #58d38d33;
}

    /* PULSANTE */
    .remediation-status button.btn {
        display: inline-block;
        max-width: fit-content;
        padding: 5px 12px;
        font-size: 0.85em;
        font-weight: 600;
        border-radius: 6px;
        margin-top: 6px;
        background-color: #2e8461;
        box-shadow: 0 0 5px #58d38d44, 0 0 1px #58d38d22 inset;
    }


        .remediation-status button.btn:hover {
            background-color: #359773;
            color: #fff;
            cursor: pointer;
        }

        .remediation-status button.btn .material-icons-outlined {
            font-size: 18px;
            line-height: 1;
            vertical-align: middle;
            color: #ffffffde;
            text-shadow: 0 0 2px #00000033;
            font-size: 17px;
            margin-right: 3px;
            margin-left: -5px;
            position: relative;
            top: -1px;
        }

/* AZIONI */
.swal2-actions .btn {
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 0 6px #991A1E22;
}

/* ANNULLA */
.btn-outline-secondary {
    font-weight: 600;
    border: 1px solid #aaa !important;
    background: transparent !important;
    color: #ccc !important;
    transition: all 0.25s ease;
    border-radius: 10px;
    padding: 10px 22px;
}

    .btn-outline-secondary:hover {
        color: #fff !important;
        background-color: #333 !important;
        border-color: #ddd !important;
    }

/* WARNING */
.swal2-icon.swal2-warning {
    background: radial-gradient(circle at center, #e6526b0a 80%);
    border: 2.5px solid #991A1E;
    color: #e6526b;
    text-shadow: 0 0 12px #991a1e, 0 0 28px #6c1a1a, 0 0 48px #2a0d12;
}

/* POPUP SUCCESSO - RIMEDIATO */
.swal2-popup.swal-success-remediated {
    background: linear-gradient(135deg, var(--bg, #101418) 80%, #0e1c15 140%);
    color: #d3f5e9;
    border-radius: 20px;
    border: 2px solid #3ea87766;
    padding: 38px 32px 28px 32px !important;
    max-width: 560px;
    font-family: 'Inter', 'Roboto', sans-serif;
    overflow: hidden;
    text-align: center !important;
}

    /* ICONA SUCCESSO */
    .swal2-popup.swal-success-remediated .swal2-icon.swal2-success {
        background: radial-gradient(circle at center, #3ea87722 80%);
        border: 2px solid #3ea877;
        color: #3ea877;
        text-shadow: 0 0 8px #3ea87766, 0 0 20px #2a7d5f66, 0 0 40px #0e1c1533;
        box-shadow: 0 0 0 3px #3ea8770f, 0 4px 28px 0 #3ea87733, inset 0 2px 2px #0e1c1522;
    }

/* POPUP ERRORE */
.swal2-popup.swal-error {
    background: linear-gradient(135deg, var(--bg, #1a1d21) 80%, #2c181a 140%);
    color: #f0cfcf;
    border-radius: 20px;
    border: 2px solid #991A1E44;
    padding: 38px 32px 28px 32px !important;
    max-width: 560px;
    text-align: center !important;
}

    /* ERRORE ICONA ROSSA */
    .swal2-popup.swal-error .swal2-icon.swal2-error {
        background: radial-gradient(circle at center, #e6526b0a 80%);
        border: 2px solid #991A1E;
        color: #e16574;
        text-shadow: 0 0 8px #991a1e44;
        box-shadow: 0 0 0 3px #991a1e10, 0 4px 28px 0 #991A1E33, inset 0 2px 2px #1a1d2130;
    }

/* POPUP INFORMATIVO - CIANO */
.swal2-popup.swal-info {
    background: linear-gradient(135deg, var(--bg, #101418) 80%, #0d1c2a 140%);
    color: #cdebf2;
    border-radius: 20px;
    border: 2px solid #2ea3bc55;
    padding: 38px 32px 28px 32px !important;
    max-width: 580px;
    font-family: 'Inter', 'Roboto', sans-serif;
    overflow: hidden;
    text-align: center !important;
}

    .swal2-popup.swal-info .swal2-icon.swal2-info,
    .swal2-popup.swal-info .swal2-icon.swal2-question {
        background: radial-gradient(circle at center, #2ea3bc22 80%);
        border: 2px solid #2ea3bc;
        color: #2ea3bc;
        text-shadow: 0 0 8px #2ea3bc66, 0 0 20px #1d5a6e55, 0 0 40px #0e1f2633;
        box-shadow: 0 0 0 3px #2ea3bc0f, 0 4px 28px 0 #2ea3bc33, inset 0 2px 2px #0e1f2630;
    }

/* PULSANTE CYANO */
.btn-glow-cyan {
    border-radius: 10px;
    padding: 10px 22px;
    background-color: #2a99b0;
    border: none;
    color: #eafcff;
    font-weight: 600;
    box-shadow: 0 0 0 3px #2a99b00f, 0 4px 20px #2a99b033;
    transition: all 0.25s ease;
}
.btn-glow-cyan:hover {
    background-color: #3db0c3;
    color: #ffffff;
    cursor: pointer;
}
.btn-glow-yellow {
    border-radius: 10px;
    padding: 10px 22px;
    background-color: #c28f00;
    border: none;
    color: #eafcff;
    font-weight: 600;
    box-shadow: 0 0 0 3px #2a99b00f, 0 4px 20px #2a99b033;
    transition: all 0.25s ease;
}
    .btn-glow-yellow:hover {
        background-color: #d8752c;
        color: #ffffff;
        cursor: pointer;
    }

.btn-glow-red {
    border-radius: 10px;
    padding: 10px 22px;
    background-color: #8f181c;
    border: none;
    color: #fbecec;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .btn-glow-red:hover {
        background-color: #a3191f;
        color: #ffffff;
        cursor: pointer;
    }

.btn-glow-success {
    border-radius: 10px;
    padding: 10px 22px;
    background-color: #359773;
    border: none;
    color: #e8fff5;
    font-weight: 600;
    box-shadow: 0 0 0 3px #3597730f, 0 4px 20px #35977333;
    transition: all 0.25s ease;
}

    .btn-glow-success:hover {
        background-color: #48b383;
        color: #ffffff;
        cursor: pointer;
    }

.swal2-close-custom {
    font-size: 38px;
    line-height: 1;
    color: #fbecec;
    opacity: 0.9;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #8f181c;
    box-shadow: 0 0 0 3px #8f181c0f, 0 4px 20px #8f181c33;
}

    .swal2-close-custom:hover {
        background-color: #a3191f;
        color: #ffffff;
    }

/* SCROLLBAR - SWEETALERT INFO */
.swal2-html-container {
    scrollbar-width: auto;
    scrollbar-color: #2ea3bc77 transparent;
}

    .swal2-html-container::-webkit-scrollbar {
        width: 8px;
    }

    .swal2-html-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .swal2-html-container::-webkit-scrollbar-thumb {
        background-color: #2ea3bc77;
        border-radius: 10px;
    }

        .swal2-html-container::-webkit-scrollbar-thumb:hover {
            background-color: #2ea3bcaa;
        }

/* SCROLLBAR SWEET ALERT ROSSA */
.swal-scroll-red .swal2-html-container {
    scrollbar-color: #8f181c transparent;
}

    .swal-scroll-red .swal2-html-container::-webkit-scrollbar-thumb {
        background: #8f181c;
    }

        .swal-scroll-red .swal2-html-container::-webkit-scrollbar-thumb:hover {
            background: #a3191f;
        }

@media (max-width: 991.98px) {

    .swal2-popup.swal-dark,
    .swal2-popup.swal-info,
    .swal2-popup.swal-error,
    .swal2-popup.swal-success-remediated {
        width: 92% !important;
        max-width: none !important;
        padding: 26px 20px 22px 20px !important;
        border-radius: 16px;
    }

    .swal2-title {
        font-size: 1.45em !important;
        margin-bottom: 0.8em;
    }

    .swal2-html-container {
        max-height: 240px !important;
        font-size: 0.92em;
        padding-right: 2px;
    }

    .violation-entry {
        padding: 16px 18px;
        gap: 8px;
    }

    .violation-header,
    .violation-row {
        font-size: 0.88em;
    }

        .violation-row .material-icons-outlined {
            font-size: 1.05rem;
            width: 1.2em;
            height: 1.2em;
        }

    .swal2-actions .btn,
    .btn-glow-cyan,
    .btn-glow-red,
    .btn-glow-success,
    .btn-outline-secondary {
        padding: 9px 18px !important;
        font-size: 0.85em !important;
        border-radius: 8px;
    }

    .swal2-close-custom {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 32px;
    }
}

.btn .material-icons-outlined {
    font-size: 20px;
    vertical-align: middle;
    line-height: 1;
    text-shadow: 0 0 2px #00000022;
}

.chart-title .material-icons-outlined {
    font-size: 20px;
    text-shadow: 0 0 6px #ffcb3a33;
}

.chart-container .material-icons-outlined {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.text-cyan {
    color: #2a99b0;
}


.card-scroll {
    max-height: 150px; 
    overflow-y: auto; 
    padding-right: 4px; 
    scroll-behavior: smooth; 
}

    .card-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .card-scroll::-webkit-scrollbar-thumb {
        background-color: #991A1E66;
        border-radius: 10px;
        border: 1px solid #991A1E66;
    }

    .card-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

.card-scroll {
    scrollbar-color: #991A1E66 transparent;
    scrollbar-width: thin;
}

/* PHISHING CAMPAIGN SWEET ALERT MODIFICA*/
.dfend-edit-form .form-control {
    background: #E2E2E2;
    border: 1.2px solid #17191c;
    color: #2B2B2B;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

    .dfend-edit-form .form-control:focus {
        border: 1px solid #17191c;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    }


        /*-------------------------DFEND CHART------------------------*/
        /* GENERALI - CARD E STRUTTURA BASE */
.card-dark {
    background: linear-gradient(135deg, var(--bg) 80%, #2a0d12 140%);
    border: 2px solid var(--bg-alt);
    border-radius: 14px;
    color: var(--text);
    box-shadow: 0 6px 24px 0 rgba(32, 10, 16, 0.45), 0 2px 8px 0 rgba(0, 0, 0, 0.44);
    padding: 25px;
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 670px;
}

    .card-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px 0 rgba(32, 10, 16, 0.59), 0 2px 16px 0 rgba(236, 49, 68, 0.06);
    }

.placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #b19da3;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive Fix */
@media (max-width: 767.98px) {
    .row > [class^="col-"]:not(:last-child) {
        margin-bottom: 1.5rem;
    }

    .dfend-footer .row > div {
        text-align: center !important;
    }

    .dfend-footer .footer-logo {
        margin: 0 auto;
    }

    .dfend-footer .d-flex.flex-md-row {
        flex-direction: column !important;
        align-items: center;
    }
}

/* GRAFICI */
.chart-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 200px;
}

#areaChart {
    max-height: 350px !important;
}

.chart-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-title);
    font-size: 1.3rem;
    text-align: center;
    text-shadow: 0 0 6px rgba(0, 255, 204, 0.15);
}

    .chart-title small {
        display: block;
        color: var(--text-title-small);
        font-size: 0.8rem;
        font-weight: 400;
    }

/* Legenda grafici */
.legend-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text);
    white-space: nowrap;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid #2b2f36;
    box-shadow: 0 0 4px rgba(0, 255, 204, 0.4);
}

#legendPie {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 8px 20px;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    width: auto;
    max-width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 0 10px;
    scrollbar-width: auto;
    scrollbar-color: #991A1E66 transparent;
}

    #legendPie::-webkit-scrollbar {
        width: 6px;
    }

    #legendPie::-webkit-scrollbar-thumb {
        background-color: #991A1E66;
        border-radius: 10px;
        border: 2px solid #991A1E66;
        box-shadow: inset 0 0 2px #991A1E66;
    }

    #legendPie::-webkit-scrollbar-track {
        background: transparent;
    }

    #legendPie .legend-item {
        display: flex;
        align-items: center;
        font-size: 0.8rem;
        color: var(--text);
        white-space: nowrap;
        width: 100%;
    }

    #legendPie .legend-color {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 6px;
        border: 1px solid #2b2f36;
        box-shadow: 0 0 4px rgba(0, 255, 204, 0.4);
    }

@media (max-width: 1280px) {
    #legendPie {
        grid-template-columns: repeat(1, max-content) !important;
        /*grid-template-columns: 1fr;*/
        justify-content: start;
        text-align: left;
        padding-left: 20px;
    }
}

/* CONTATORI  */
.metric-number {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    color: var(--accent-green); 
    transition: color 0.3s ease;
    text-shadow: 0 0 8px rgba(25, 135, 84, 0.08); 
}

.metric-label {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-title-small);
    margin-bottom: 0;
}

/* CONTATORI */
.metric-danger {
    color: #8E1F27; 
}

.metric-warning {
    color: #9C7A00; 
}

.metric-success {
    color: #146C49; 
}

.metric-info {
    color: #167CA8; 
}

.metric-neutral {
    color: var(--text-light);
}

/* LABEL */
.form-label {
    font-weight: 500; 
    font-size: 0.78rem; 
    letter-spacing: 1.5px; 
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #bbb; 
    transition: color 0.3s ease;
}

/* INPUT */
.dfend-input {
    background: #131518;
    border: 1px solid #2a2a2a !important;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.92rem;
    color: var(--text-light);
    transition: all 0.25s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
}

    .dfend-input:hover {
        border-color: #333;
        background: #181c1e;
    }

    .dfend-input:focus {
        outline: none;
        border-color: var(--accent-glow);
        background: #17191c;
        box-shadow: 0 0 12px var(--accent-glow), inset 0 0 6px rgba(0,0,0,0.6);
        color: var(--text-light);
    }

input.form-control.dfend-input {
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.dfend-file:focus,
.dfend-file:focus-visible,
.dfend-file:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid #292a2d !important;
}

.dfend-file::-webkit-file-upload-button:focus,
.dfend-file::-webkit-file-upload-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* PLACEHOLDER */
.dfend-input::placeholder {
    color: #777; 
    font-style: italic;
    letter-spacing: 0.5px;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.dfend-input:focus::placeholder {
    color: #991a1e; 
    opacity: 0.65; 
}

.alert-danger {
    background: rgba(153, 26, 30, 0.12);
    border: 1px solid rgba(153, 26, 30, 0.3);
    color: var(--text-light);
    box-shadow: 0 0 12px rgba(153, 26, 30, 0.15);
    border-radius: 10px;
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: var(--text-light);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.06);
    border-radius: 10px;
    font-size: 0.92rem;
}

.dfend-readonly {
    background: linear-gradient(135deg, #17191c, #101214);
    border: 1px solid #292a2d;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.92rem;
    color: var(--text-light);
    letter-spacing: 0.4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
}

/* NEW CAMPAIGN */
.dfend-form-section {
    width: 100%;
    border-radius: 14px;
    padding: 2rem 3rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--bg) 88%, #19090a 135%);
    border: 1.8px solid #1a1012;
    color: var(--text);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(20, 8, 10, 0.35);
}

    .dfend-form-section label {
        display: block;
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 10px;
        letter-spacing: 0.25px;
        text-align: center;
        color: var(--text-title);
        text-align: center;
        text-shadow: 0 0 6px rgba(0, 255, 204, 0.15);
    }

    .dfend-form-section .form-group {
        margin-bottom: 1.1rem;
        text-align: center;
    }

    .dfend-form-section .form-control {
        width: 70%;
        margin: 0 auto;
        border-radius: 7px;
        border: 1.2px solid #17191c;
        background-color: #E2E2E2;
        color: #2B2B2B;
        font-size: 0.95rem;
        transition: all 0.25s ease;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    }

        .dfend-form-section .form-control::placeholder {
            color: #8e8e8e;
            opacity: 0.7;
        }

.form-control {
    border: 1.2px solid #17191c;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    color: #2B2B2B;
    background: #E2E2E2;
}

.form-select {
    background-color: #E2E2E2;
    background-image: var(--bs-form-select-bg-img);
    border: 1.2px solid #17191c;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    color: #2B2B2B;
}

.CodeMirror {
    border-radius: 8px;
    border: 1.8px solid #17191c;
}

    .dfend-form-section .btn-primary {
        display: block;
        margin: 1.3rem auto 0;
        background-color: #991a1e;
        border: 1px solid #991a1e;
        color: #f3f3f3;
        font-weight: 600;
        padding: 0.65rem 1.4rem;
        border-radius: 10px;
        transition: all 0.25s ease;
        width: 40%;
        min-width: 200px;
    }

        .dfend-form-section .btn-primary:hover {
            background-color: #aa2225;
            border-color: #aa2225;
            box-shadow: 0 0 10px rgba(153, 26, 30, 0.35);
            transform: translateY(-1px);
        }

control-label {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    color: var(--text-title);
    text-shadow: 0 0 6px rgba(0, 255, 204, 0.15);
}

    .dfend-form-section i, .dfend-note {
        display: block;
        font-size: 0.85rem;
        margin-top: 1rem;
        color: #999;
        opacity: 0.8;
        text-align: center;
    }

.form-select {
    width: 100% !important;
}

@media (max-width: 992px) {
    .dfend-form-section {
        padding: 1.5rem;
    }

        .dfend-form-section .form-control {
            width: 100%;
        }

        .dfend-form-section .btn-primary {
            width: 100%;
        }
}


.dfend-tabs {
    gap: 0.5rem;
    padding: 0.2rem;
}

    .dfend-tabs::after {
        background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 12%, rgba(255, 255, 255, 0.18) 88%, rgba(255, 255, 255, 0) 100% );
        box-shadow: 0 0 6px rgba(153, 26, 30, 0.25), 0 0 10px rgba(0, 255, 204, 0.12);
    }

    .dfend-tabs .nav-link {
        background: #16191c;
        color: #bfc1c9;
        border-radius: 10px 10px 0 0;
        padding: 10px 24px;
        font-size: 15px;
        font-weight: 500;
        border: 1px solid transparent;
        border-bottom: 2px solid transparent;
        box-sizing: border-box;
        transition: all 0.25s ease;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

        .dfend-tabs .nav-link .material-icons-outlined {
            font-size: 18px;
            transition: color 0.25s ease;
        }

        .dfend-tabs .nav-link:hover {
            background: linear-gradient(145deg, var(--bg-alt) 0%, var(--active-color) 100%);
            border-bottom: 2px solid transparent;
            transform: translateY(-1px);
        }


            .dfend-tabs .nav-link:hover .material-icons-outlined {
                color: #ff4a57;
            }

        /* Active */
        .dfend-tabs .nav-link.active {
            color: #fff;
            background: #121417;
            font-weight: 600;
            border: 1px solid var(--accent-main);
            border-bottom: 2px solid #991A1E;
            box-shadow: 0 0 0 1px #991A1E55, 0 0 12px #991A1E66, inset 0 0 12px #991A1E33;
        }

            .dfend-tabs .nav-link.active .material-icons-outlined {
                color: #ff4a57;
            }

            .dfend-tabs .nav-link.active::after {
                background: #121417;
            }

@media (max-width: 768px) {
    .dfend-tabs .nav-link {
        padding: 8px 16px;
        font-size: 14px;
    }
}


.campaign-title {
    font-size: 1.15rem; 
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: 0.6px;
}

.campaign-code {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #b82222; 
    text-shadow: 0 0 12px rgba(120, 20, 22, 0.9);
    text-align: center;
    margin-bottom: 10px;
}

.range-container {
    margin: 14px 0;
}

    .range-container input[type=range] {
        width: 100%;
        height: 6px;
        appearance: none;
        background: rgba(255,255,255,0.12);
        border-radius: 4px;
        outline: none;
    }

        .range-container input[type=range]::-webkit-slider-thumb {
            appearance: none;
            height: 14px;
            width: 14px;
            border-radius: 50%;
            background: #991A1E;
            box-shadow: 0 0 10px rgba(153, 26, 30, 0.9);
            cursor: not-allowed;
        }

.range-labels {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.campaign-info {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .campaign-info .badge-pill {
        display: inline-flex;
        align-items: center;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 12px;
        line-height: 1;
        box-shadow: 0 0 8px rgba(0,0,0,0.3);
    }



/* TABELLE */

.tabulator-headers {
    background: linear-gradient(135deg, #151617, #1c1d1f) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #f0f0f0;
}

.tabulator-col {
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px 8px;
}

.tabulator-col .tabulator-col-title {
    color: #f2f2f2;
}

.tabulator-cell {
    padding: 10px 12px;
    border: none;
    color: #dddddd;
}

.tabulator-row {
    background-color: rgba(17, 18, 20, 0.98) !important;
    transition: background 0.2s ease;
}

.tabulator .tabulator-row:hover {
    background-color: rgba(40, 40, 40, 0.45) !important;
}

.tabulator-row.tabulator-row-even {
    background-color: rgba(24, 26, 29, 0.98) !important;
}

.tabulator-header-filter input {
    background: rgba(35, 35, 35, 0.9);
    border: 1px solid rgba(25, 135, 84, 0.4); 
    color: #e4e4e4;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 0 6px rgba(25, 135, 84, 0.05); 
}

    .tabulator-header-filter input:focus {
        border-color: #198754;
        background: rgba(40, 40, 40, 0.95);
        box-shadow: 0 0 6px rgba(25, 135, 84, 0.3); 
    }


.tabulator-col .tabulator-header-popup-button i {
    color: #198754;
}

.tabulator-row .tabulator-responsive-collapse-toggle {
    color: #198754;
}

.tabulator .tabulator-tableHolder {
    scrollbar-color: #198754 #111;
    scrollbar-width: thin;
}

.tabulator .tabulator-tableHolder::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

    .tabulator .tabulator-tableHolder::-webkit-scrollbar-thumb {
        background: #991A1E66;
        border-radius: 10px;
    }

.tabulator-col .tabulator-col-sorter {
    color: #cccccc;
}

.tabulator-col,
.tabulator-cell,
.tabulator-header,
.tabulator-row {
    color: #e4e4e4 !important;
}

.tabulator .tabulator-header input::placeholder {
    font-style: italic;
    font-size: 12px;
    opacity: 0.85;
}

.tabulator .tabulator-cell:hover {
    background-color: rgba(40, 40, 40, 0.45) !important;
    border: none !important;
}

.tabulator,
.tabulator .tabulator-tableHolder {
    scrollbar-width: thin !important;
    scrollbar-color: #991A1E66 transparent;
}

    .tabulator::-webkit-scrollbar,
    .tabulator .tabulator-tableHolder::-webkit-scrollbar {
        width: 6px !important;
    }

    .tabulator::-webkit-scrollbar-thumb,
    .tabulator .tabulator-tableHolder::-webkit-scrollbar-thumb {
        background-color: #991A1E66;
        border-radius: 10px;
        border: 1px solid #991A1E66;
    }

    .tabulator::-webkit-scrollbar-track,
    .tabulator .tabulator-tableHolder::-webkit-scrollbar-track {
        background: transparent;
    }

.tabulator-row.tabulator-selected {
    background-color: rgba(45, 212, 191, 0.15) !important;
    box-shadow: inset 0 0 8px rgba(45, 212, 191, 0.3);
}

.tabulator-col .material-icons-outlined {
    font-size: 16px;
    vertical-align: middle;
    color: var(--accent-main);
    opacity: 0.85;
    transform: translateY(-1px);
}

.tabulator-tooltip {
    background: rgba(17, 18, 20, 0.98) !important;
    border: 1px solid #fff !important;
    border-radius: 5px !important;
    font-weight: 500 !important;
}

/* DROPDOWN TABULATOR */
.tabulator .tabulator-cell.tabulator-editing,
.tabulator .tabulator-cell.tabulator-editing input[type="search"],
.tabulator .tabulator-cell.tabulator-editing input[type="text"] {
    border-radius: 6px !important;
    border: 0.5px solid #1D68CD !important;
    font-weight: 500;
}

/* DROPDOWN HOST */
.dfend-group-editor-wrapper {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: var(--bg-alt);
    border: 1px solid #2c2d31;
    border-radius: 11px;
    padding: 14px 14px;
    min-width: 230px;
    opacity: 0;
    transform-origin: top center;
    animation: dfendFadeDown 0.18s cubic-bezier(0.21,0.72,0.29,1) forwards;
}

@keyframes dfendFadeDown {
    from {
        opacity: 0;
        transform: translate(-50%, -4px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0px);
    }
}


.dfend-group-dropdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.dfend-group-section-title {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
    padding-left: 4px;
}

.dfend-group-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #d6d7db;
    transition: 0.15s;
}

    .dfend-group-item:hover {
        background: rgba(30, 144, 255, 0.12);
        box-shadow: inset 0 -2px 6px rgba(30, 144, 255, 0.35), inset 0 0 0 1px rgba(30, 144, 255, 0.22);
        color: #78baff;
    }

.dfend-group-separator {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 0 0;
}

.dfend-group-input {
    width: 100%;
    padding: 8px 10px;
    border: 0.5px solid #1D68CD !important;
    border-radius: 8px;
    color: #e6e6e6;
    font-size: 13px;
    transition: 0.18s ease;
}

    .dfend-group-input:focus {
        outline: none;
        border-color: #1E90FF;
        box-shadow: 0 0 6px rgba(30, 144, 255, 0.24);
    }

.dfend-group-add-btn {
    padding: 9px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    background: rgba(30,144,255,0.10);
    color: #6bb6ff;
    cursor: pointer;
    transition: 0.2s ease;
}

.dfend-group-add-btn:hover {
    background: rgba(30,144,255,0.18);
    box-shadow: 0 0 6px rgba(30,144,255,0.25);
}
.dfend-group-input-wrapper {
    position: relative;
    width: 100%;
}

.dfend-group-input {
    width: 100%;
    padding-right: 24px; 
    box-sizing: border-box;
}

.dfend-group-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-weight: bold;
    color: #6bb6ff;
    user-select: none;
    font-size: 13px;
}

.dfend-group-empty {
    padding: 6px 4px;
    font-size: 12px;
    color: #737983;
    font-style: italic;
}

.dfend-btn-raw {
    background: #7a0f12;
    color: #ffffff !important;
    padding: 6px 14px;
    font-size: 0.83rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: 0.25s ease-in-out;
}

    .dfend-btn-raw:hover {
        transform: translateY(-1px);
        background: #861115;
    }

.dfend-btn-raw-green {
    background: #146845; 
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.83rem;
    border: 1px solid rgba(25, 135, 84, 0.4);
    border-radius: 8px;
    transition: 0.25s ease-in-out;
}

    .dfend-btn-raw-green:hover {
        transform: translateY(-1px);
        color: #ffffff;
        background: #1a7e57;
    }

.dfend-btn-raw-cyan {
    background: #0f5f6b;
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.83rem;
    border: 1px solid rgba(23, 162, 184, 0.45);
    border-radius: 8px;
    transition: 0.25s ease-in-out;
}

    .dfend-btn-raw-cyan:hover {
        transform: translateY(-1px);
        background: #137684;
    }

.dfend-btn-raw-orange {
    background: #c05a12;
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.83rem;
    border: 1px solid rgba(255, 140, 0, 0.55);
    border-radius: 8px;
    transition: 0.25s ease-in-out;
}

    .dfend-btn-raw-orange:hover {
        transform: translateY(-1px);
        background: #d96a17;
    }

.cvss-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.cvss-value {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.cvss-info {
    font-size: 0.75rem;
    opacity: 0.6;
}

.cvss-cell:hover .cvss-info {
    opacity: 1;
}

.json-tree-wrapper {
    font-size: 13px;
    line-height: 1.32em;
    color: #e4e4e4;
    white-space: normal;
    word-break: break-word;
}

.json-node {
    margin-left: 12px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.10);
}

.json-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
}

.json-toggle {
    cursor: pointer;
    user-select: none;
    opacity: .8;
    font-size: 14px;
    transition: transform .15s ease;
}

.json-children {
    display: none;
    margin-left: 4px;
    margin-top: 3px;
    transition: all .15s ease;
}

.json-value-block {
    display: block;
    padding-left: 26px; 
    margin-top: 2px;
    white-space: normal;
    word-break: break-word;
}

.json-value-string {
    color: #199CD8; 
}

.json-value-number {
    color: #D8B319; 
}

.json-value-bool-true {
    color: #19D89E; 
}

.json-value-bool-false {
    color: #D81947; 
}

.json-value-null {
    color: #708A9A; 
}

/* GRID SEARCH */
.dfend-grid-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
    height: 38px;
    background: #101215;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    border-bottom: 2px solid var(--accent-main);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
    padding: 0 12px 0 38px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

    .dfend-grid-search:focus-within {
        outline: none;
        border-color: var(--accent-glow);
        background: #17191c;
        box-shadow: 0 0 12px var(--accent-glow), inset 0 0 6px rgba(0,0,0,0.6);
        color: var(--text-light);
    }

.dfend-grid-search-icon {
    position: absolute;
    left: 12px;
    font-size: 17px !important;
    color: var(--text-title) !important;
    opacity: 0.85;
    pointer-events: none;
}

.dfend-grid-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-title);
}

    .dfend-grid-search-input::placeholder {
        color: var(--text-title);
    }

    /* SIEM STATUS BAR */
.siem-status-bar {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--bg) 78%, #2a0d12 140%);
    border: 2px solid var(--bg-alt);
    border-radius: 16px;
    gap: 14px !important;
    transform: translateX(12px);
    min-width: 610px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 0 20px rgba(153,0,0,0.05);
}

.siem-status-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.6px;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(0,255,204,0.18);
}

.siem-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.28rem;
    white-space: nowrap;
}

.siem-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25), transparent);
    opacity: 0.4;
}

.siem-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    background: #444;
    position: relative;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.6), 0 0 8px rgba(0,0,0,0.35);
    transition: 0.25s ease;
}

.siem-ok {
    background: linear-gradient(145deg, #27d75b, #16b145);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.7), 0 0 8px rgba(0,255,120,0.35);
}

.siem-bad {
    background: linear-gradient(145deg, #ff4d4d, #c92828);
    box-shadow: inset 0 0 7px rgba(0,0,0,0.7), 0 0 10px rgba(255,90,90,0.4);
}

.siem-warn {
    background: linear-gradient(145deg, #ffce4e, #c79a19);
    box-shadow: inset 0 0 7px rgba(0,0,0,0.65), 0 0 10px rgba(255,200,60,0.35);
}

.siem-label {
    color: var(--text-light);
    font-size: 1.28rem;
    font-weight: 700;
    opacity: 0.95;
}

.siem-total-num {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--accent-main);
    letter-spacing: 0.4px;
}

.siem-icon-neutral {
    font-size: 1.35rem;
    opacity: 0.85;
    color: var(--accent-main);
}

@media (max-width: 1400px) {
    .siem-status-bar {
        min-width: 100%;
        padding: 14px 22px;
        gap: 26px !important;
    }
}

@media (max-width: 992px) {
    .siem-divider {
        display: none;
    }

    .siem-status-bar {
        gap: 18px !important;
        padding: 14px;
    }
}

@media (max-width: 576px) {
    .siem-status-bar {
        border-radius: 12px;
        padding: 12px 14px;
        gap: 14px !important;
    }

    .siem-status-title {
        font-size: 1.05rem;
    }

    .siem-total-num {
        font-size: 1.1rem;
    }
}

.badge-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    white-space: normal !important;
    justify-content: center;
    max-width: 100%;
}

.badge-grid {
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 500;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: normal; 
    word-break: break-word; 
    text-wrap: balance; 
    display: inline-flex;
    align-items: center;
}

.badge-success {
    background-color: #1987541a; 
    color: #198754;
    border: 1px solid #19875455;
    box-shadow: 0 0 4px #19875422;
}

.badge-warning {
    background-color: #a2780010; 
    color: #a27800;
    border: 1px solid #a2780044;
    box-shadow: 0 0 2px #a2780015;
}


.badge-danger {
    background-color: #b02a3715; 
    color: #b02a37;
    border: 1px solid #b02a3755;
    box-shadow: 0 0 4px #b02a3722;
}


.badge-pending {
    background-color: #199cd81a; 
    color: #199cd8;
    border: 1px solid #199cd866;
    box-shadow: 0 0 4px #199cd826;
}

.badge-neutral {
    color: #6c757d; 
    border: 1px solid #6c757d; 
}


    #openPorts .badge,
    #detectedServices .badge {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 50px;
        padding: 6px 10px;
        text-align: center;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    #openPorts .badge:hover,
    #detectedServices .badge:hover {
        filter: brightness(1.25);
        transform: translateY(-1px);
    }

.form-check-input:checked {
    background-color: var(--accent-main);
    border-color: var(--accent-main);
}

/* OS ICON */
.os-icon {
    margin-right: 3px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    opacity: 0.95;
}

.os-win {
    color: #0078B8;
}

.os-linux {
    color: #C49F1D;
}

.os-mac, .os-ios {
    color: #8E8E8E;
}

.os-android {
    color: #2FA866;
}

.os-unknown {
    color: #666;
}



    /*DA RICONTROLLARE*/
    .selected-host-name {
        display: inline-block;
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        text-align: center;
        margin: 0 auto 14px auto;
        padding: 6px 18px;
        position: relative;
    }

    .selected-host-name::before,
    .selected-host-name::after {
        content: "";
        display: block;
        height: 1px; 
        width: 115%; 
        border-radius: 2px;
        position: absolute;
        left: -7.5%; 
    }

    .selected-host-name::before {
        top: -3px;
    }

    .selected-host-name::after {
        bottom: -3px;
    }

.tabulator-row.tabulator-group {
    background: linear-gradient(90deg, rgba(14,16,19,0.95), rgba(23,25,28,0.95));
    color: #e2e2e2;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 14px;
    box-shadow: inset 0 1px 0 rgba(0, 255, 204, 0.05);
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .tabulator-row.tabulator-group:hover {
        cursor: pointer;
        background: rgba(0, 255, 204, 0.03);
    }
}

.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--text-light);
    border-bottom: 0;
    margin-right: 12px;
}

.tabulator-row.tabulator-group .tabulator-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 12px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--text-light);
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.tabulator-row.tabulator-group .tabulator-group-toggle {
    display: inline-flex;
    align-items: center;
}


.card-dark,
.chart-title,
.chart-container canvas,
.dfendchart-tabulator,
.metric-number,
.metric-label,
.btn-download,
.legend-container,
.dfend-section-header,
.dfend-filter-label-group,
.dfend-time-filter-group,
.kpi-card,
.dfend-tabs,
.nomodule,
.card,
.video-frame-container,
.dfend-form-section,
.siem-status-bar,
.video-info-container {
    opacity: 0 !important;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

    .card-dark.appear,
    .chart-title.appear,
    .chart-container canvas.appear,
    .dfendchart-tabulator.appear,
    .metric-number.appear,
    .metric-label.appear,
    .btn-download.appear,
    .legend-container.appear,
    .dfend-section-header.appear,
    .dfend-filter-label-group.appear,
    .dfend-time-filter-group.appear,
    .kpi-card.appear,
    .dfend-tabs.appear,
    .nomodule.appear,
    .card.appear,
    .video-frame-container.appear,
    .dfend-form-section.appear,
    .siem-status-bar.appear,
    .video-info-container.appear {
        opacity: 1 !important;
        transform: translateY(0);
    }

#map {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    background-color: #111315;
}

.severity-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
    border: 1px solid #2b2f36;
    box-shadow: 0 0 4px rgba(25, 135, 84, 0.3);
    transition: box-shadow 0.3s, background 0.3s;
}
/*Nascondo Logout e Tema */
@media (max-width: 767px) {
    #themebtn {
        display: none !important;
    }
    #logoutbtn {
        display: none !important;
    }
}

/*AWARENESS ACADEMY*/
.awareness-section {
    padding: 30px 40px 60px;
}

/* THUMB */
.video-thumb {
    position: relative;
    min-height: 160px;
    background: #1a1b1f;
    border-radius: 10px 10px 0 0;
    overflow: visible;
}

    .video-thumb img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
        opacity: 0.9;
        transition: 0.4s ease;
        display: block;
    }

/* LINEA DI PROGRESSO FINTA */
.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

    .video-progress .progress-bar {
        height: 100%;
        transition: width 1s ease-out;
        animation: fillBar 1.6s ease-out forwards;
    }
@keyframes fillBar {
    from {
        width: 0;
    }
}

.progress-intro .progress-bar {
    background: linear-gradient(90deg, #18c683, #0f8c5f);
    box-shadow: 0 0 8px rgba(24, 198, 131, 0.4);
}

.progress-module1 .progress-bar {
    background: linear-gradient(90deg, #00adb5, #00686e);
    box-shadow: 0 0 8px rgba(0, 173, 181, 0.4);
}

.progress-module2 .progress-bar {
    background: linear-gradient(90deg, #888, #555);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

/* BADGE */
.awareness-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    padding: 6px 12px;
    border-radius: 9px;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.7), 0 0 6px rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}

    .awareness-badge:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.75), 0 0 10px rgba(255,255,255,0.08);
    }

.awareness-badge-intro {
    background: rgba(0, 55, 35, 0.9);
    border: 1px solid rgba(24, 198, 131, 0.55);
    color: #eafff4;
}

.awareness-badge-module1 {
    background: rgba(0, 55, 70, 0.9);
    border: 1px solid rgba(0, 173, 181, 0.55);
    color: #e9feff;
}

.awareness-badge-module2 {
    background: rgba(45, 45, 45, 0.9);
    border: 1px solid rgba(180, 180, 180, 0.45);
    color: #e2e2e2;
}

.thumb-play-btn {
    position: absolute;
    right: 12px;
    bottom: -22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e3e3e3;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.65), 0 0 10px rgba(232, 74, 95, 0.25);
    border: 2px solid #1e1e1e;
    transition: 0.25s ease;
    z-index: 5;
}

    .thumb-play-btn .awareness-icon {
        font-size: 26px;
        line-height: 1;
        color: #1e1e1e;
        transition: 0.25s ease;
    }

    .thumb-play-btn:hover {
        background: #8A252B;
        border-color: #8A252B;
        transform: scale(1.015);
        transition: all 0.3s ease;
    }

        .thumb-play-btn:hover .awareness-icon {
            color: #fff;
            transform: scale(1.08);
        }

.video-body {
    padding: 32px 22px 20px;
    flex-grow: 1;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: .5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: .4rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 24px rgba(232,74,95,0.18);
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.07));
}

.video-desc {
    font-size: 0.88rem;
    color: #c8cbcf;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,173,181,0.18);
}

.video-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 22px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem .5rem;
    border-radius: 0 0 10px 10px;
    transition: all 0.3s ease;
}

.video-footer-left {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.video-meta {
    color: #cfd4d8;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 20px rgba(232,74,95,0.25);
}

    .video-meta .awareness-icon {
        font-size: 17px;
        line-height: 1;
        color: #e84a5f;
        opacity: 1;
        font-weight: 500;
    }

.video-duration {
    color: #d8dfe2;
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 20px rgba(232,74,95,0.25);
}

.video-footer-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* BADGE STATO FOOTER  */
.awareness-status {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid;
    background: rgba(18, 18, 18, 0.55);
    backdrop-filter: blur(4px);
    transition: 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6), 0 0 6px rgba(255,255,255,0.05);
    text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 16px currentColor;
}

    .awareness-status .awareness-icon {
        font-size: 16px;
        line-height: 1;
        transition: 0.25s ease;
    }

.status-completed {
    color: #18c683;
    border-color: rgba(24,198,131,0.45);
    background: rgba(0,40,25,0.65);
    box-shadow: 0 0 10px rgba(24,198,131,0.25), 0 6px 14px rgba(0,0,0,0.6);
}

    .status-completed .awareness-icon {
        color: #18c683;
        text-shadow: 0 0 6px rgba(24,198,131,0.7), 0 0 16px rgba(24,198,131,0.4);
    }

.status-inprogress {
    color: #00adb5;
    border-color: rgba(0,173,181,0.45);
    background: rgba(0,45,50,0.65);
    box-shadow: 0 0 10px rgba(0,173,181,0.25), 0 6px 14px rgba(0,0,0,0.6);
}

    .status-inprogress .awareness-icon {
        color: #00adb5;
        text-shadow: 0 0 6px rgba(0,173,181,0.7), 0 0 16px rgba(0,173,181,0.4);
        animation: spin-light 2s linear infinite;
    }

.status-notstarted {
    color: #b0b0b0;
    border-color: rgba(176,176,176,0.35);
    background: rgba(35,35,35,0.6);
    box-shadow: 0 0 10px rgba(255,255,255,0.08), 0 6px 14px rgba(0,0,0,0.6);
}

    .status-notstarted .awareness-icon {
        color: #b0b0b0;
        text-shadow: 0 0 6px rgba(255,255,255,0.25), 0 0 16px rgba(0,0,0,0.8);
    }

.status-error {
    color: #e84a5f;
    border-color: rgba(232, 74, 95, 0.55);
    background: rgba(55, 10, 15, 0.75);
    box-shadow: 0 0 10px rgba(232, 74, 95, 0.25), 0 0 18px rgba(232, 74, 95, 0.08), 0 6px 14px rgba(0, 0, 0, 0.65);
}

    .status-error .awareness-icon {
        color: #e84a5f;
        text-shadow: 0 0 6px rgba(232, 74, 95, 0.75), 0 0 16px rgba(232, 74, 95, 0.45);
    }

.awareness-icon {
    font-size: 18px;
    vertical-align: middle;
    transition: 0.25s ease;
}

@media (max-width: 767px) {
    .awareness-section {
        padding: 20px;
    }
}

.awareness-badge-quiz {
    background: rgba(40, 22, 8, 0.72);
    border: 1px solid rgba(255,140,42,0.45);
    color: rgba(255, 200, 150, 0.95);
}

.progress-quiz .progress-bar {
    background: linear-gradient( 90deg, rgba(255,140,42,0.95), rgba(180,90,20,0.90) );
    box-shadow: 0 0 8px rgba(255,140,42,0.35);
}

.status-gotoquiz {
    color: rgba(255, 210, 170, 0.95);
    border-color: rgba(255,140,42,0.45);
    background: rgba(35,18,8,0.60);
    box-shadow: 0 6px 16px rgba(0,0,0,0.70), inset 0 0 0 1px rgba(255,140,42,0.15), 0 0 8px rgba(255,140,42,0.25);
}

    .status-gotoquiz .awareness-icon {
        color: rgba(255, 210, 170, 0.95);
        text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 14px rgba(255,140,42,0.35);
    }

    .status-gotoquiz:hover {
        transform: translateY(-1px);
        background: rgba(45,22,10,0.70);
        border-color: rgba(255,160,70,0.65);
        box-shadow: 0 10px 20px rgba(0,0,0,0.72), 0 0 14px rgba(255,140,42,0.45), inset 0 0 0 1px rgba(255,160,70,0.25);
    }



/*SWEET ALERT FINDINGS*/
.violation-section {
    margin-bottom: 18px;
}

.violation-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: #f8f9fa;
    user-select: none;
    padding: 4px 0;
}

.violation-arrow {
    font-size: 14px;
    color: #9aa0a6;
    transition: transform .25s ease;
}

.violation-section.open .violation-arrow {
    transform: rotate(90deg);
}

.violation-content {
    display: none;
    margin-left: 32px;
    margin-top: 6px;
    line-height: 1.45rem;
}

.violation-section.open .violation-content {
    display: block;
}

.cvss-block {
    margin-bottom: 14px;
}

.cvss-vector {
    font-size: 0.85rem;
    opacity: 0.9;
}

.extra-metrics li {
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.violation-checkbox {
    cursor: pointer;
    margin-right: 8px;
}

.violation-headerFinding {
    margin-bottom: 18px;
}

/* CERCA VULNERABILITY SWEET ALERT */
.dfend-search-swal {
    background: linear-gradient(135deg, #0e1012 60%, #12181d 140%);
    border: 1.5px solid #39c6e155;
    border-radius: 16px;
    padding: 20px 26px 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(57, 198, 225, 0.06), 0 0 18px rgba(57, 198, 225, 0.08);
    overflow: hidden;
}

.dfend-search-swal-html {
    margin: 0;
    padding: 0;
}

.dfend-search-modal {
    color: #d9e7ee;
    text-align: left;
}

.dfend-search-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.95rem;
    margin-bottom: 1.1rem;
    text-align: center;
}

.dfend-search-hero-title {
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #f3f8fb;
    text-shadow: 0 0 10px rgba(57, 198, 225, 0.08);
}

.dfend-search-hero-subtitle {
    font-size: 0.94rem;
    color: #92a8b3;
}

.dfend-search-panel {
    background: linear-gradient(135deg, rgba(14, 16, 18, 0.76) 60%, rgba(18, 24, 29, 0.9) 140%);
    border: 1px solid rgba(57, 198, 225, 0.12);
    border-radius: 14px;
    padding: 1rem 1rem 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.dfend-search-section + .dfend-search-section {
    margin-top: 1.05rem;
}

.dfend-search-label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #8ea7b2;
}

.dfend-search-type-switch {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.dfend-radio-card {
    position: relative;
    min-width: 145px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.78rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(57, 198, 225, 0.16);
    background: linear-gradient(135deg, rgba(14, 16, 18, 0.92) 60%, rgba(18, 24, 29, 0.96) 140%);
    color: #d7e8ef;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
}

    .dfend-radio-card input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .dfend-radio-card .material-icons-outlined {
        font-size: 1.1rem;
        color: #39c6e1;
    }

    .dfend-radio-card:hover {
        border-color: rgba(57, 198, 225, 0.34);
        box-shadow: 0 8px 16px rgba(0,0,0,0.22);
        transform: translateY(-1px);
    }

    .dfend-radio-card.active {
        border-color: rgba(57, 198, 225, 0.52);
        background: linear-gradient(135deg, rgba(17, 26, 31, 0.98) 60%, rgba(22, 35, 41, 1) 140%);
        box-shadow: 0 0 0 1px rgba(57, 198, 225, 0.05), 0 0 16px rgba(57, 198, 225, 0.09);
    }

.dfend-search-inline-group {
    align-items: stretch;
}

    .dfend-search-inline-group .form-control {
        border-right: 0;
        box-shadow: none;
    }

        .dfend-search-inline-group .form-control:focus {
            box-shadow: none;
            border-color: rgba(57, 198, 225, 0.22);
        }

.dfend-search-submit-btn {
    min-width: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

    .dfend-search-submit-btn .material-icons-outlined {
        font-size: 1.05rem;
        line-height: 1;
    }

.dfend-results-wrapper {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(57, 198, 225, 0.1);
}

.dfend-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.dfend-results-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 700;
    color: #edf6fb;
}

    .dfend-results-title .material-icons-outlined {
        color: #39c6e1;
        font-size: 1.1rem;
    }

.dfend-results-counter {
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 700;
    color: #a7dcea;
    background: rgba(57, 198, 225, 0.08);
    border: 1px solid rgba(57, 198, 225, 0.14);
}

.dfend-results-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.dfend-results-stack {
    display: flex;
    flex-direction: column;
    gap: 0.68rem;
}

.dfend-result-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 13px;
    border: 1px solid rgba(57, 198, 225, 0.14);
    background: linear-gradient(135deg, rgba(14, 16, 18, 0.9) 60%, rgba(18, 24, 29, 0.97) 140%);
    cursor: pointer;
    transition: all 0.22s ease;
}

    .dfend-result-item:hover {
        border-color: rgba(57, 198, 225, 0.28);
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), 0 0 10px rgba(57, 198, 225, 0.05);
    }

    .dfend-result-item.selected {
        border-color: rgba(57, 198, 225, 0.48);
        background: linear-gradient(135deg, rgba(17, 26, 31, 0.98) 60%, rgba(22, 35, 41, 1) 140%);
        box-shadow: 0 0 0 1px rgba(57, 198, 225, 0.05), 0 0 16px rgba(57, 198, 225, 0.09);
    }

.dfend-result-icon,
.dfend-result-check {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfend-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(57, 198, 225, 0.07);
    border: 1px solid rgba(57, 198, 225, 0.14);
}

    .dfend-result-icon .material-icons-outlined {
        font-size: 1.08rem;
        color: #39c6e1;
    }

.dfend-result-check .material-icons-outlined {
    font-size: 1.18rem;
    color: #728b96;
    transition: color 0.2s ease;
}

.dfend-result-item.selected .dfend-result-check .material-icons-outlined {
    color: #39c6e1;
}

.dfend-result-body {
    flex: 1 1 auto;
    min-width: 0;
}

.dfend-result-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #f3f8fb;
    margin-bottom: 0.16rem;
}

.dfend-result-subtitle {
    font-size: 0.92rem;
    color: #c6d8e1;
    line-height: 1.45;
    word-break: break-word;
}

.dfend-empty-results {
    padding: 2rem 1rem;
    text-align: center;
    border: 1px dashed rgba(57, 198, 225, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 16, 18, 0.84) 60%, rgba(18, 24, 29, 0.92) 140%);
}

    .dfend-empty-results .material-icons-outlined {
        font-size: 2rem;
        color: #6f95a3;
        margin-bottom: 0.35rem;
    }

.dfend-empty-results-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e8f2f7;
}

.dfend-empty-results-text {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #90a7b2;
}

  