 /*
 ============================================================
 SENTINEL CONTROL CENTER
 Layout System
 RC1.1-F1
 ============================================================
 */



/* ==========================================================
   APPLICATION ROOT
   ========================================================== */


#app {

    width:
        100%;

    min-height:
        100vh;

    background:
        var(--s-bg-primary);

}



/* ==========================================================
   MAIN CONTAINER
   ========================================================== */


.s-container {

    width:
        min(1280px, 92%);

    margin:
        0 auto;

}



/* ==========================================================
   HEADER
   ========================================================== */


.s-header {

    position:
        fixed;

    top:
        0;

    left:
        0;

    width:
        100%;

    height:
        72px;


    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;


    padding:
        0 40px;


    z-index:
        1000;


    background:
        rgba(7,17,29,0.75);


    backdrop-filter:
        blur(12px);


    border-bottom:
        1px solid var(--s-border);

}



/* ==========================================================
   HEADER SECTIONS
   ========================================================== */


.s-header-left,
.s-header-right {

    display:
        flex;

    align-items:
        center;

}



/* ==========================================================
   MAIN CONTENT
   ========================================================== */


.s-main {

    padding-top:
        72px;


    min-height:
        100vh;

}



/* ==========================================================
   SECTIONS
   ========================================================== */


.s-section {

    padding:
        80px 0;

}



/* ==========================================================
   GRID SYSTEM
   ========================================================== */


.s-grid {

    display:
        grid;


    gap:
        24px;

}



.s-grid-2 {

    grid-template-columns:
        repeat(2, 1fr);

}



.s-grid-3 {

    grid-template-columns:
        repeat(3, 1fr);

}



/* ==========================================================
   RESPONSIVE
   ========================================================== */


@media(max-width:900px){


    .s-grid-2,
    .s-grid-3 {


        grid-template-columns:
            1fr;


    }



    .s-header {

        padding:
            0 20px;

    }


}
/* ==========================================================================
   SENTINEL CONTROL CENTER
   UI SHELL
   ========================================================================== */


.scc-shell {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    background:

        #07111D;

    color:

        #ffffff;

    font-family:

        "Segoe UI",
        Arial,
        sans-serif;

}



.scc-header {

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 30px;

    background:

        rgba(7,17,29,.85);

    border-bottom:

        1px solid rgba(216,176,0,.25);

    backdrop-filter:

        blur(12px);

}



.scc-brand {

    font-size: 20px;

    letter-spacing: 3px;

    font-weight: 600;

    color:

        #D8B000;

}



.scc-system-status {

    font-size: 13px;

    color:

        #7dff9b;

}



.scc-main {


    flex: 1;

    display: flex;


}



.scc-sidebar {


    width: 160px;

    flex: 0 0 160px;


    padding: 22px 8px;


    background:

        rgba(255,255,255,.04);


    border-right:

        1px solid rgba(255,255,255,.08);


    backdrop-filter:

        blur(10px);


}



.scc-menu-item {


    padding: 11px 10px;


    margin-bottom: 8px;


    border-radius: 8px;


    cursor: pointer;


    color:

        rgba(255,255,255,.75);


    font-size: 13px;


    line-height: 1.25;


    overflow-wrap: break-word;


    transition:

        .25s ease;


}



.scc-menu-item:hover,


.scc-menu-item.active {


    background:

        rgba(216,176,0,.15);


    color:

        #D8B000;


}



.scc-content {


    flex: 1;


    padding: 30px;


}



/* ==========================================================================
   SENTINEL HEADER BRAND
   ========================================================================== */


.scc-brand {

    display: flex;

    align-items: center;

    gap: 15px;

}



.scc-logo {


    width: 180px;


    height: 46px;


    object-fit: contain;


    object-position: left center;


}



.scc-system-status {


    display: flex;


    align-items: center;


    gap: 8px;


}



.status-dot {


    width: 9px;


    height: 9px;


    border-radius: 50%;


    background:

        #5CFF7A;


    box-shadow:

        0 0 10px #5CFF7A;


}

.scc-system-status.is-offline {
    color: #ff9292;
}

.scc-system-status.is-offline .status-dot {
    background: #ff6262;
    box-shadow: 0 0 12px rgba(255, 98, 98, .55);
}


.scc-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.scc-demo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 200, 87, .42);
    border-radius: 999px;
    color: #ffd879;
    background: rgba(255, 200, 87, .09);
    font: 700 11px/1 "JetBrains Mono", monospace;
    letter-spacing: .1em;
    box-shadow: 0 0 18px rgba(255, 200, 87, .1);
}

.scc-demo-mode .scc-system-status [data-header-system-label]::after {
    color: #ffd879;
    content: " · DATI SIMULATI";
}


.scc-logout-button {
    min-width: 96px;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid rgba(216,176,0,.55);
    border-radius: 8px;
    color: #f4d64c;
    background: rgba(216,176,0,.07);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .09em;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}


.scc-logout-button:hover {
    border-color: #d8b000;
    color: #07111d;
    background: #d8b000;
}


.scc-logout-button:focus-visible,
.scc-logout-dialog button:focus-visible {
    outline: 2px solid #d8b000;
    outline-offset: 3px;
}


.scc-logout-button:disabled {
    opacity: .58;
    cursor: wait;
}


.scc-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


.scc-logout-dialog {
    width: min(520px, calc(100% - 32px));
    padding: 0;
    border: 1px solid rgba(216,176,0,.38);
    border-radius: 14px;
    color: #eef4f8;
    background: #0a1927;
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
}


.scc-logout-dialog::backdrop {
    background: rgba(2,8,14,.78);
    backdrop-filter: blur(4px);
}


.scc-logout-dialog__body {
    padding: 28px;
}


.scc-logout-dialog__kicker {
    margin: 0 0 9px;
    color: #d8b000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}


.scc-logout-dialog h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 24px;
}


.scc-logout-dialog p:not(.scc-logout-dialog__kicker) {
    margin: 0 0 11px;
    color: rgba(238,244,248,.74);
    line-height: 1.55;
}


.scc-logout-dialog strong {
    color: #f4d64c;
}


.scc-logout-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}


.scc-logout-dialog__actions button {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
}


.scc-logout-dialog__cancel {
    border: 1px solid rgba(255,255,255,.16);
    color: #eef4f8;
    background: rgba(255,255,255,.04);
}


.scc-logout-dialog__primary {
    border: 1px solid #d8b000;
    color: #07111d;
    background: #d8b000;
}


.operation-end-button.is-required-for-logout {
    animation: scc-logout-required 1s ease-in-out 3;
    box-shadow: 0 0 0 3px rgba(255,115,115,.24), 0 0 24px rgba(255,80,80,.35);
}


@keyframes scc-logout-required {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.025); }
}


@media (max-width: 760px) {
    .scc-header {
        padding: 0 14px;
    }

    .scc-brand {
        gap: 8px;
    }

    .scc-logo {
        width: 132px;
        height: 38px;
    }

    .scc-brand > span,
    .scc-system-status > span:not(.status-dot) {
        display: none;
    }

    .scc-demo-badge {
        padding-inline: 7px;
    }

    .scc-header-actions {
        gap: 10px;
    }

    .scc-logout-button {
        min-width: 82px;
        padding-inline: 11px;
    }

    .scc-logout-dialog__body {
        padding: 22px;
    }

    .scc-logout-dialog__actions {
        flex-direction: column-reverse;
    }

    .scc-logout-dialog__actions button {
        width: 100%;
    }
}


@media (prefers-reduced-motion: reduce) {
    .scc-logout-button {
        transition: none;
    }

    .operation-end-button.is-required-for-logout {
        animation: none;
    }
}
