/* ============================================================
   ISP360 ENTERPRISE SIDEBAR V3
   ============================================================ */

:root{
    --sidebar-width:258px;
    --sidebar-bg:#0a1322;
    --sidebar-bg-2:#0d1b2f;
    --sidebar-card:#101f36;

    --sidebar-text:#d7e2f0;
    --sidebar-muted:#7387a3;

    --sidebar-blue:#3b82f6;
    --sidebar-blue-soft:rgba(59,130,246,.12);

    --sidebar-green:#22c55e;
    --sidebar-red:#ef4444;

    --sidebar-border:rgba(255,255,255,.065);
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar{
    position:fixed !important;
    left:0;
    top:0;
    bottom:0;

    width:var(--sidebar-width) !important;
    height:100vh !important;

    padding:0 !important;

    display:flex;
    flex-direction:column;

    background:
        radial-gradient(
            circle at 20% -10%,
            rgba(59,130,246,.13),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #0b1627 0%,
            #091321 54%,
            #07101c 100%
        ) !important;

    border-right:1px solid var(--sidebar-border);

    box-shadow:
        10px 0 30px rgba(2,6,23,.19);

    color:white;

    overflow:hidden;

    z-index:1000;
}

/* ========================================
   BRAND
   ======================================== */

.isp360-brand{
    flex:none;

    min-height:82px;

    margin:10px 10px 4px;
    padding:14px 14px;

    display:flex;
    align-items:center;
    gap:11px;

    border-radius:14px;

    border:
        1px solid rgba(255,255,255,.07);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    box-shadow:
        inset 0 1px rgba(255,255,255,.035);
}

.isp360-brand-mark{
    width:38px;
    height:38px;

    min-width:38px;

    border-radius:10px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #60a5fa
        );

    box-shadow:
        0 6px 18px rgba(37,99,235,.27);

    color:#fff;

    font-size:16px;
    font-weight:800;
}

.isp360-brand-info{
    min-width:0;
    flex:1;
}

.isp360-brand-name{
    color:#fff;

    font-size:14px;
    font-weight:750;

    line-height:1.2;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.isp360-brand-sub{
    margin-top:4px;

    color:#7088a8;

    font-size:9px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.8px;
}

/* white label compatibility */

.isp360-brand-info .logo{
    margin:0 !important;
    padding:0 !important;

    font-size:14px !important;
    line-height:1.2 !important;

    color:#fff !important;
}

.isp360-brand-info .logo img{
    max-width:135px !important;
    max-height:32px !important;
    object-fit:contain;
}

/* ========================================
   NAV CONTAINER
   ======================================== */

.isp360-nav{
    flex:1;

    min-height:0;

    overflow-y:auto;
    overflow-x:hidden;

    padding:8px 10px 20px;
}

.isp360-nav::-webkit-scrollbar{
    width:4px;
}

.isp360-nav::-webkit-scrollbar-thumb{
    background:rgba(148,163,184,.22);
    border-radius:20px;
}

/* ========================================
   SECTIONS
   ======================================== */

.isp360-section{
    margin-top:11px;
}

.isp360-section-title{
    width:100%;

    padding:6px 10px 7px;

    border:0;
    outline:0;

    background:transparent;

    display:flex;
    align-items:center;
    justify-content:space-between;

    cursor:pointer;

    color:#657b99;

    font-size:9px;
    font-weight:800;

    letter-spacing:1.3px;

    text-align:left;

    transition:.15s ease;
}

.isp360-section-title:hover{
    color:#a6bad2;
}

.isp360-arrow{
    width:16px;
    height:16px;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:transform .18s ease;

    opacity:.55;
}

.isp360-section.open .isp360-arrow{
    transform:rotate(90deg);
    opacity:1;
}

.isp360-section-items{
    display:none;
}

.isp360-section.open .isp360-section-items{
    display:block;

    animation:
        sidebarOpen .13s ease-out;
}

@keyframes sidebarOpen{
    from{
        opacity:0;
        transform:translateY(-2px);
    }

    to{
        opacity:1;
        transform:none;
    }
}

/* ========================================
   MENU LINK
   ======================================== */

.sidebar .isp360-link{
    position:relative;

    min-height:40px;

    display:flex !important;
    align-items:center;

    gap:11px;

    padding:8px 10px !important;

    margin:2px 0 !important;

    border:1px solid transparent;

    border-radius:9px;

    color:#aebed2 !important;

    font-size:12.5px;
    font-weight:520;

    text-decoration:none !important;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.sidebar .isp360-link:hover{
    color:#eef6ff !important;

    background:
        rgba(59,130,246,.085) !important;

    border-color:
        rgba(96,165,250,.075);

    transform:translateX(1px);
}

/* ========================================
   ICONS
   ======================================== */

.isp360-icon{
    width:19px;
    height:19px;

    min-width:19px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#7188a8;
}

.isp360-icon svg{
    width:17px;
    height:17px;

    stroke:currentColor;

    fill:none;

    stroke-width:1.8;

    stroke-linecap:round;
    stroke-linejoin:round;
}

.isp360-link:hover .isp360-icon{
    color:#93c5fd;
}

/* ========================================
   ACTIVE ITEM
   ======================================== */

.sidebar .isp360-link.active{
    color:#fff !important;

    font-weight:650;

    background:
        linear-gradient(
            90deg,
            rgba(37,99,235,.94),
            rgba(59,130,246,.78)
        ) !important;

    border-color:
        rgba(147,197,253,.16);

    box-shadow:
        0 7px 18px rgba(37,99,235,.15);
}

.sidebar .isp360-link.active .isp360-icon{
    color:#fff;
}

.sidebar .isp360-link.active::before{
    content:"";

    position:absolute;

    left:-6px;

    width:3px;
    height:20px;

    border-radius:5px;

    background:#93c5fd;

    box-shadow:
        0 0 8px rgba(147,197,253,.65);
}

/* ========================================
   DASHBOARD
   ======================================== */

.isp360-dashboard-link{
    margin-bottom:8px !important;
}

/* ========================================
   BADGES
   ======================================== */

.isp360-badge{
    margin-left:auto;

    min-width:20px;
    height:18px;

    padding:0 6px;

    border-radius:20px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    font-size:8px;
    font-weight:800;

    background:
        rgba(59,130,246,.12);

    color:#93c5fd;

    border:
        1px solid rgba(96,165,250,.1);
}

.isp360-status-dot{
    margin-left:auto;

    width:7px;
    height:7px;

    border-radius:50%;

    background:var(--sidebar-green);

    box-shadow:
        0 0 0 3px rgba(34,197,94,.09);
}

/* ========================================
   COMING SOON
   ======================================== */

.sidebar .isp360-coming{
    opacity:.42;

    cursor:default;
}

.sidebar .isp360-coming:hover{
    transform:none;

    background:transparent !important;

    border-color:transparent;
}

.sidebar .isp360-coming::after{
    content:"";

    margin-left:auto;

    width:5px;
    height:5px;

    border-radius:50%;

    background:#60758f;
}

/* ========================================
   USER FOOTER
   ======================================== */

.isp360-user-footer{
    flex:none;

    margin:5px 10px 10px;
    padding:10px;

    min-height:58px;

    display:flex;
    align-items:center;
    gap:9px;

    border-radius:12px;

    border:
        1px solid rgba(255,255,255,.06);

    background:
        rgba(255,255,255,.025);
}

.isp360-user-avatar{
    width:34px;
    height:34px;

    min-width:34px;

    border-radius:10px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#dbeafe;

    font-size:11px;
    font-weight:800;

    background:
        rgba(59,130,246,.13);

    border:
        1px solid rgba(96,165,250,.13);
}

.isp360-user-info{
    min-width:0;
    flex:1;
}

.isp360-user-name{
    color:#d9e5f2;

    font-size:11px;
    font-weight:650;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.isp360-user-role{
    margin-top:2px;

    color:#637b99;

    font-size:9px;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* ========================================
   MAIN
   ======================================== */

.main{
    margin-left:var(--sidebar-width) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media(max-width:900px){

    :root{
        --sidebar-width:225px;
    }

    .sidebar{
        width:var(--sidebar-width) !important;
    }

    .main{
        margin-left:var(--sidebar-width) !important;
    }
}

@media(max-width:700px){

    .sidebar{
        position:relative !important;

        width:100% !important;
        height:auto !important;

        overflow:visible;
    }

    .isp360-nav{
        overflow:visible;
    }

    .main{
        margin-left:0 !important;
    }

    .isp360-user-footer{
        margin-bottom:12px;
    }
}
