/* -------------------------------------------------------------------
 * software:   Futureverse - FuturEnergy Management System
 * version:    2.0.0
 * content:    Foglio di stile per la barra laterale di navigazione
 * author:     Donato Poggi, 2026
 * license:    Proprietary - All rights reserved
 * owner:      © FuturEnergy Rinnovabile s.r.l.
 * framework:  © Aetheros PHP Framework by Donato Poggi
 * ------------------------------------------------------------------- */

/* =========================================================
   SIDEBAR
========================================================= */
.fv-sidebar {
    display: flex;
    flex-direction: column;
    align-self: start;
    min-height: 0;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    padding: 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(12, 21, 46, 0.96) 0%, rgba(10, 19, 40, 0.98) 100%);
    border: 1px solid rgba(93, 214, 255, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 18px 36px rgba(0, 0, 0, 0.20);
    overflow: hidden;
    position: sticky;
    top: 30px;
}

.fv-sidebar-top {
    margin-bottom: 20px;
}

/* =========================================================
   BRAND
========================================================= */
.fv-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 6px 4px 6px;
}

.fv-brand-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.fv-brand-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 0;
}

.fv-brand-text-wrap {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
}

.fv-brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    line-height: 1.05;
}

.fv-brand-signature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

.fv-brand-signature-text {
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
    text-align: center;
}

.fv-brand-line {
    display: inline-block;
    height: 2px;
    border-radius: 999px;
    flex: 0 0 22px;
}

.fv-brand-line-left {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #27c46b 100%);
}

.fv-brand-line-right {
    background: linear-gradient(90deg, #ff3b57 0%, rgba(0, 0, 0, 0) 100%);
}

/* =========================================================
   MENU WRAPPER
========================================================= */
.fv-sidebar-menu {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 20px;
    padding: 26px 10px 16px 10px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(28, 43, 91, 0.52) 0%, rgba(37, 28, 92, 0.34) 100%);
    border: 1px solid rgba(93, 214, 255, 0.10);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(93, 214, 255, 0.28) transparent;
}

.fv-sidebar-menu::before {
    content: "";
    position: absolute;
    top: 60px;
    left: -70px;
    width: 180px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 214, 255, 0.28) 0%, transparent 72%);
    filter: blur(28px);
    pointer-events: none;
    opacity: 0.95;
}

.fv-sidebar-menu::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 28%);
    pointer-events: none;
}

/* =========================================================
   NAV
========================================================= */
.fv-nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: min-content;
    gap: 10px;
    padding: 8px 0 0 0;
}

.fv-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--fv-text-soft);
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.fv-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.95;
}

.fv-nav-link span {
    font-size: 0.98rem;
    font-weight: 500;
}

.fv-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(93, 214, 255, 0.10);
    transform: translateX(4px);
}

.fv-nav-link.active {
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(47, 128, 255, 0.24) 0%, rgba(93, 214, 255, 0.10) 100%);
    border-color: rgba(93, 214, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 16px rgba(47, 128, 255, 0.08);
}


/* =========================================================
   SIDEBAR BOTTOM / USER CARD
========================================================= */
.fv-sidebar-bottom {
    flex: 0 0 auto;
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fv-sidebar-menu::-webkit-scrollbar {
    width: 8px;
}

.fv-sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.fv-sidebar-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(93, 214, 255, 0.24);
}

.fv-sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(93, 214, 255, 0.34);
}

.fv-user-card,
.fv-status-card {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(16, 33, 68, 0.95) 0%, rgba(12, 26, 54, 0.95) 100%);
    border: 1px solid rgba(93, 214, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.fv-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fv-user-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(47, 128, 255, 0.88), rgba(123, 77, 255, 0.88));
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.fv-user-avatar i {
    font-size: 1rem;
}

.fv-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.fv-user-role {
    margin-top: 4px;
    font-size: 0.88rem;
    color: var(--fv-text-soft);
}

/* card secondaria eventuale stato sistema */
.fv-status-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fv-status-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(46, 211, 154, 0.14);
    color: var(--fv-green);
}

.fv-status-card-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: #ffffff;
}

.fv-status-card-text {
    margin-top: 3px;
    font-size: 0.84rem;
    color: var(--fv-text-soft);
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1180px) {
    .fv-sidebar {
        position: static;
        min-height: auto;
        height: auto;
        max-height: none;
    }

    .fv-sidebar-menu::before {
        display: none;
    }
}
