/* =====================================================
   RUSSOS MOTOR WORKS ERP
   SIDEBAR V5
===================================================== */

.sidebar{

    position:fixed;

    top:0;

    left:0;

    width:280px;

    height:100vh;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    background:linear-gradient(
        180deg,
        #07090c 0%,
        #10151b 100%
    );

    border-right:1px solid rgba(255,255,255,.05);

    box-shadow:
        10px 0 40px rgba(0,0,0,.35);

    overflow:hidden;

    z-index:1000;

}


/* ==========================================
   HEADER
========================================== */

.sidebar-header{

    padding:30px 25px;

    border-bottom:1px solid rgba(255,255,255,.05);

}


.sidebar-brand{

    display:flex;

    align-items:center;

    gap:18px;

    text-decoration:none;

}


.sidebar-brand img{

    width:72px;

    height:72px;

    object-fit:contain;

    transition:.35s;

}


.sidebar-brand:hover img{

    transform:scale(1.06);

}


.brand-text h2{

    color:#fff;

    font-size:20px;

    font-weight:700;

    margin:0;

}


.brand-text span{

    display:block;

    margin-top:4px;

    color:#7f8a97;

    font-size:13px;

    letter-spacing:1px;

}


/* ==========================================
   CONTENT
========================================== */

.sidebar-content{

    flex:1;

    overflow-y:auto;

    padding:25px 18px;

}


/* ==========================================
   SECTION
========================================== */

.sidebar-category{

    margin-bottom:30px;

}


.category-title{

    display:block;

    color:#64707d;

    text-transform:uppercase;

    font-size:11px;

    letter-spacing:2px;

    margin-bottom:15px;

    padding-left:15px;

}


/* ==========================================
   LINKS
========================================== */

.sidebar a{

    display:flex;

    align-items:center;

    gap:16px;

    padding:13px 15px;

    margin-bottom:8px;

    border-radius:16px;

    text-decoration:none;

    color:#d4dce3;

    transition:.3s;

}


.sidebar a span{

    font-size:15px;

    font-weight:500;

}


/* ==========================================
   ICON
========================================== */

.menu-icon{

    width:42px;

    height:42px;

    border-radius:14px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(255,255,255,.04);

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

    transition:.35s;

}


.menu-icon i{

    color:#9fb2c3;

    transition:.35s;

}


/* ==========================================
   HOVER
========================================== */

.sidebar a:hover{

    background:rgba(0,217,255,.08);

    transform:translateX(6px);

    color:#fff;

}


.sidebar a:hover .menu-icon{

    background:rgba(0,217,255,.12);

    border-color:rgba(0,217,255,.25);

    box-shadow:

        0 0 15px rgba(0,217,255,.15);

}


.sidebar a:hover i{

    color:#00d9ff;

}


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

.sidebar a.active{

    background:linear-gradient(

        90deg,

        rgba(0,217,255,.14),

        transparent

    );

    color:#fff;

    position:relative;

}


.sidebar a.active::before{

    content:"";

    position:absolute;

    left:-18px;

    top:8px;

    bottom:8px;

    width:4px;

    border-radius:50px;

    background:#00d9ff;

    box-shadow:

        0 0 12px #00d9ff;

}


.sidebar a.active .menu-icon{

    background:rgba(0,217,255,.16);

    border-color:rgba(0,217,255,.25);

}


.sidebar a.active i{

    color:#00d9ff;

}
/* ==========================================
   DROPDOWNS
========================================== */

.sidebar-dropdown{

    margin-bottom:10px;

}

.dropdown-toggle{

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:13px 15px;

    border:none;

    background:transparent;

    border-radius:16px;

    color:#d4dce3;

    cursor:pointer;

    transition:.3s;

}

.dropdown-toggle:hover{

    background:rgba(0,217,255,.08);

}

.dropdown-left{

    display:flex;

    align-items:center;

    gap:16px;

}

.dropdown-left span{

    font-size:15px;

    font-weight:500;

}

.arrow{

    color:#8b99a7;

    transition:.35s;

}

.sidebar-dropdown.open .arrow{

    transform:rotate(180deg);

    color:#00d9ff;

}



/* ==========================================
   SUBMENU
========================================== */

.dropdown-menu{

    display:none;

    margin-top:10px;

    margin-left:22px;

    padding-left:18px;

    border-left:2px solid rgba(0,217,255,.12);

}

.sidebar-dropdown.open .dropdown-menu{

    display:block;

    animation:dropdownFade .25s ease;

}

.dropdown-menu a{

    padding:11px 14px;

    border-radius:12px;

    margin-bottom:6px;

    color:#9ba8b6;

    font-size:14px;

}

.dropdown-menu a:hover{

    color:#fff;

    transform:translateX(6px);

}



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

.sidebar-footer{

    padding:20px;

    border-top:1px solid rgba(255,255,255,.05);

    background:rgba(255,255,255,.02);

}



/* ==========================================
   STATUS CARD
========================================== */

.status-card{

    display:flex;

    align-items:center;

    gap:14px;

    padding:14px;

    margin-bottom:12px;

    border-radius:18px;

    background:rgba(255,255,255,.03);

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

    transition:.3s;

}

.status-card:hover{

    border-color:rgba(0,217,255,.18);

    box-shadow:

        0 0 20px rgba(0,217,255,.08);

}

.status-card strong{

    display:block;

    color:white;

    font-size:14px;

}

.status-card small{

    display:block;

    margin-top:3px;

    color:#7d8792;

}



/* ==========================================
   STATUS DOT
========================================== */

.status-indicator{

    width:11px;

    height:11px;

    border-radius:50%;

}

.status-indicator.online{

    background:#2bff7d;

    box-shadow:

        0 0 10px #2bff7d,

        0 0 18px #2bff7d;

}



/* ==========================================
   ERP INFO
========================================== */

.erp-version{

    text-align:center;

    margin-top:22px;

}

.erp-version strong{

    display:block;

    color:white;

    font-size:14px;

}

.erp-version span{

    display:block;

    margin-top:4px;

    color:#6f7d8b;

    font-size:12px;

}



/* ==========================================
   SCROLLBAR
========================================== */

.sidebar-content::-webkit-scrollbar{

    width:5px;

}

.sidebar-content::-webkit-scrollbar-thumb{

    background:rgba(255,255,255,.08);

    border-radius:20px;

}



/* ==========================================
   ANIMATIONEN
========================================== */

@keyframes dropdownFade{

    from{

        opacity:0;

        transform:translateY(-8px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}



/* ==========================================
   MOBILE
========================================== */

@media(max-width:1100px){

    .sidebar{

        width:260px;

    }

    .main-content{

        margin-left:260px;

    }

}

@media(max-width:900px){

    .sidebar{

        transform:translateX(-100%);

        transition:.35s;

    }

    .sidebar.open{

        transform:translateX(0);

    }

    .main-content{

        margin-left:0;

    }

}



/* ==========================================
   PREMIUM DETAILS
========================================== */

.sidebar::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:3px;

    height:100%;

    background:linear-gradient(

        180deg,

        #00d9ff,

        transparent

    );

}

.sidebar::after{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:linear-gradient(

        180deg,

        rgba(255,255,255,.015),

        transparent 30%,

        transparent 70%,

        rgba(255,255,255,.015)

    );

}