 /*
 ============================================================
 SENTINEL OPERATION CENTER
 Layout System
 RC1.1-F1
 ============================================================
 */



/* ==========================================================
   APPLICATION ROOT
   ========================================================== */


#app {

    width:
        100%;

    min-height:
        100vh;

    background:
        var(--s-bg-primary);

}

/* ===========================================================================
   COMPACT OVERLAY SIDEBAR
   ========================================================================== */

.scc-main {
    position: relative;
    align-items: stretch;
}

.scc-sidebar {
    position: relative;
    z-index: 900;
    width: 72px;
    flex: 0 0 72px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-right: 0;
    backdrop-filter: none;
}

.scc-sidebar nav {
    position: sticky;
    top: 0;
    width: 72px;
    min-height: 100%;
    max-height: 100vh;
    padding: 16px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(7, 20, 34, .97);
    border-right: 1px solid rgba(63, 202, 255, .18);
    box-shadow: 9px 0 24px rgba(0, 0, 0, .18);
    backdrop-filter: blur(14px);
    transition: width .22s cubic-bezier(.22, .61, .36, 1),
        box-shadow .22s ease;
}

.scc-sidebar:hover nav,
.scc-sidebar:focus-within nav {
    width: 286px;
    box-shadow: 18px 0 36px rgba(0, 0, 0, .48);
}

/* A selected route immediately restores the icon-only rail. The lock is
   released when the pointer leaves, so a following hover can expand it. */
.scc-sidebar.is-route-selected nav,
.scc-sidebar.is-route-selected:hover nav,
.scc-sidebar.is-route-selected:focus-within nav {
    width: 72px;
    box-shadow: 9px 0 24px rgba(0, 0, 0, .18);
}

.scc-sidebar nav .scc-menu-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 4px 8px;
    gap: 0;
    margin-bottom: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .75);
    font: inherit;
    text-align: left;
    white-space: nowrap;
    overflow: visible;
    cursor: pointer;
}

.scc-menu-item__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: rgba(255, 255, 255, .8);
    transition: color .2s ease, background .2s ease;
}

.scc-menu-item__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scc-menu-item__copy {
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity .15s ease, transform .2s ease, visibility .2s ease;
}

.scc-sidebar:hover .scc-menu-item__copy,
.scc-sidebar:focus-within .scc-menu-item__copy {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.scc-sidebar.is-route-selected .scc-menu-item__copy,
.scc-sidebar.is-route-selected:hover .scc-menu-item__copy,
.scc-sidebar.is-route-selected:focus-within .scc-menu-item__copy {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
}

.scc-sidebar:hover nav .scc-menu-item,
.scc-sidebar:focus-within nav .scc-menu-item {
    gap: 10px;
}

.scc-sidebar.is-route-selected nav .scc-menu-item,
.scc-sidebar.is-route-selected:hover nav .scc-menu-item,
.scc-sidebar.is-route-selected:focus-within nav .scc-menu-item {
    gap: 0;
}

.scc-menu-item__copy strong,
.scc-menu-item__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scc-menu-item__copy strong {
    color: currentColor;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: .015em;
}

.scc-menu-item__copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    line-height: 1.2;
}

.scc-menu-separator {
    width: 40px;
    margin: 12px 8px;
    border-top: 1px solid rgba(63, 202, 255, .2);
    transition: width .22s ease;
}

.scc-sidebar:hover .scc-menu-separator,
.scc-sidebar:focus-within .scc-menu-separator {
    width: calc(100% - 16px);
}

.scc-sidebar.is-route-selected .scc-menu-separator,
.scc-sidebar.is-route-selected:hover .scc-menu-separator,
.scc-sidebar.is-route-selected:focus-within .scc-menu-separator {
    width: 40px;
}

.scc-sidebar nav .scc-menu-item:hover,
.scc-sidebar nav .scc-menu-item.active {
    border-color: rgba(216, 176, 0, .2);
}

.scc-menu-item:hover .scc-menu-item__icon,
.scc-menu-item.active .scc-menu-item__icon,
.scc-menu-item--lab .scc-menu-item__icon {
    color: #F0C500;
    background: rgba(216, 176, 0, .1);
}

.scc-sidebar .messaging-unread-badge,
.scc-sidebar .medevac-unread-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 2;
    margin: 0;
}

.scc-content {
    min-width: 0;
}

@media (max-width: 760px) {
    .scc-sidebar {
        width: 64px;
        flex-basis: 64px;
    }

    .scc-sidebar nav {
        width: 64px;
        padding-inline: 4px;
    }

    .scc-sidebar:hover nav,
    .scc-sidebar:focus-within nav {
        width: min(286px, calc(100vw - 20px));
    }

    .scc-sidebar.is-route-selected nav,
    .scc-sidebar.is-route-selected:hover nav,
    .scc-sidebar.is-route-selected:focus-within nav {
        width: 64px;
    }

    .scc-content {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scc-sidebar nav,
    .scc-menu-item__copy,
    .scc-menu-separator {
        transition: none;
    }
}



/* ==========================================================
   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 OPERATION 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-brand > span {
    max-width: 250px;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 1.5px;
}



.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-separator {

    height: 1px;

    margin: 18px 8px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(216,176,0,.72),
        transparent
    );

}



.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: 10px;

}

.scc-brand-symbol {

    width: 34px;

    height: 34px;

    flex: 0 0 auto;

    object-fit: contain;

}



.scc-logo {


    width: 132px;


    height: 34px;


    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: 6px;
    }

    .scc-brand-symbol {
        width: 30px;
        height: 30px;
    }

    .scc-logo {
        width: 110px;
        height: 30px;
    }

    .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;
    }
}

/* Keep the collapsed rail footprint fixed while its navigation overlays content. */
.scc-sidebar {
    position: relative;
    z-index: 900;
    width: 72px;
    flex: 0 0 72px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-right: 0;
    backdrop-filter: none;
}

@media (max-width: 760px) {
    .scc-sidebar {
        width: 64px;
        flex-basis: 64px;
    }
}
