/* === BURGER MENU (MODERN HACKER STYLE) === */
.burger {
    display: none;
    position: relative;
    padding: 8px;
    border: 2px solid #00ff00;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s ease;
}

.burger:hover {
    background-color: rgba(0, 255, 153, 0.1);
    border-color: #00ff00;
    transform: scale(1.05);
}

.burger svg {
    width: 30px;
    height: 30px;
    color: #00ff00;
    filter: drop-shadow(0 0 5px #00ff00);
}

/* === SIDEBAR BACKDROP === */
.sideBar-frame {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0, 255, 153, 0.05);
    backdrop-filter: blur(2px);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sideBar-frame.active {
    display: block;
    opacity: 1;
}

.sideBar-frame .sideBar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    max-width: 400px;
    width: 100vw;
    background: linear-gradient(to bottom, #000000ee, #001100cc);
    z-index: 1001;
    overflow-y: auto;
    transition: transform 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 255, 153, 0.3);
    border-left: 1px solid #00ff00;
    transform: translateX(100%);
}

.sideBar-frame.active .sideBar {
    transform: translateX(0);
}

.sideBar .head {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(0, 255, 153, 0.2);
}

.sideBar .btn {
    padding: 8px 12px;
    border: 1px solid #00ff00;
    border-radius: 12px;
    color: #00ff00;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sideBar-frame .sideBar .btn:hover {
    background-color: rgba(0, 255, 153, 0.1);
    transform: scale(1.05);
}

.sideBar-frame .sideBar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sideBar-frame .sideBar ul li a {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 255, 153, 0.2);
    font-weight: 500;
    color: #00ff00;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.sideBar-frame .sideBar ul li a:hover {
    background-color: rgba(0, 255, 153, 0.08);
    color: #00ff00;
}

/* === MATERIAL ICON STYLE faqat .sideBar ichida === */
.sideBar-frame .sideBar ul li a .material-icons,
.sideBar-frame .sideBar ul li a .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin-right: 12px;
    font-size: 22px;
    color: #00ff00;
    transition: transform 0.2s ease, color 0.3s ease;
    line-height: 1;
}

.sideBar-frame .sideBar ul li a:hover .material-icons,
.sideBar-frame .sideBar ul li a:hover .material-symbols-outlined {
    transform: scale(1.2);
    color: #00ff00;
}

/* === DROPDOWN STYLE === */
.sideBar-frame .dropdown {
    position: relative;
}

.sideBar-frame .dropdown-content {
    display: none;
    position: static;
    background: transparent;
    color: #00ff00;
    z-index: 999;
    min-width: 180px;
    animation: none;
    padding-left: 30px;
    border: none;
    box-shadow: none;
}

.sideBar-frame .dropdown.active .dropdown-content {
    display: block;
}

.sideBar-frame .dropdown-content a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #00ff00;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 153, 0.15);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1;
}

.sideBar-frame .dropdown-content a:hover {
    background-color: rgba(0, 255, 153, 0.08);
    color: #00ff00;
}

/* === DROPDOWN BUTTON STYLE === */
.sideBar-frame .dropdown .dropbtn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 30px;
    color: #00ff00;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1;
}

.sideBar-frame .dropdown .dropbtn:hover {
    background-color: rgba(0, 255, 153, 0.08);
    color: #00ff00;
}

.sideBar-frame .dropdown .dropbtn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.sideBar-frame .dropdown.active .dropbtn::after {
    transform: rotate(180deg);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sideBar-frame .sideBar {
        max-width: 100vw;
    }
}

@media (max-width: 480px) {
    .sideBar {
        width: 100vw;
    }

    .head {
        padding: 15px;
    }

    .menu {
        padding: 0;
    }

    .menu li a {
        padding: 15px 20px;
    }

    .sideBar-frame .dropdown-content a {
        padding: 10px 15px;
    }
}