﻿.site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 330px;
    height: 100vh;
    box-sizing: border-box;
    padding: 24px 18px;
    background: linear-gradient(180deg, rgba(3,15,9,.99), rgba(2,10,6,.99));
    border-right: 1px solid rgba(210,230,210,.15);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .38s cubic-bezier(.22,.61,.36,1);
}

.site-sidebar.open {
    transform: translateX(0);
}

.sidebar-logo {
    text-align: center;
    padding: 8px 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.sidebar-logo a {
    display: inline-block;
}

.sidebar-logo img {
    width: 95px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar-brand {
    margin-top: 7px;
    color: rgba(255,255,255,.70);
    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .22em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
}

.sidebar-nav a {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 7px;
    border-radius: 7px;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}

.sidebar-nav a img {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    min-height: 28px;
    max-height: 28px;
    flex: 0 0 28px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.13);
}

.sidebar-nav a span {
    flex: 1;
    display: block;
    white-space: nowrap;
    line-height: 1.2;
    font-size: 14px;
}

.sidebar-nav a b {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255,255,255,.45);
    padding-right: 2px;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(140,170,130,.10);
    transform: translateX(3px);
}

.sidebar-nav a:hover img {
    border-color: rgba(210,230,190,.40);
}

.sidebar-nav a:hover b {
    color: #dce6d4;
    transform: translateX(2px);
}

.sidebar-nav a.active {
    color: #fff;
    background: rgba(130,165,120,.19);
}

.sidebar-nav a.active img {
    border-color: rgba(210,230,190,.50);
}

.sidebar-nav a.active b {
    color: #dce6d4;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 22px 8px 4px;
}

.sidebar-line {
    width: 38px;
    height: 2px;
    background: #a9bb9c;
    margin-bottom: 13px;
}

.sidebar-bottom small {
    display: block;
    color: rgba(255,255,255,.38);
    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    letter-spacing: .20em;
}

.sidebar-bottom p {
    margin: 6px 0 0;
    color: rgba(255,255,255,.66);
    font-family: "Manrope", sans-serif;
    font-size: 12px;
}

.sidebar-menu-button {
    position: fixed;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 7px;
    background: rgba(3,13,8,.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    z-index: 100000;
}

.sidebar-menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .30s ease, opacity .20s ease;
}

.sidebar-menu-button.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sidebar-menu-button.open span:nth-child(2) {
    opacity: 0;
}

.sidebar-menu-button.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width:600px) {

    .site-sidebar {
        width: 285px;
        padding: 22px 14px;
    }

    .sidebar-nav a img {
        width: 27px;
        height: 27px;
        min-width: 27px;
        max-width: 27px;
        min-height: 27px;
        max-height: 27px;
        flex-basis: 27px;
    }

    .sidebar-nav a {
        min-height: 38px;
    }

    .sidebar-menu-button {
        top: 13px;
        left: 13px;
        width: 42px;
        height: 42px;
    }
}
