/* NAVBAR GENERAL STYLING */
nav {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 6vh;
    box-shadow: var(--shadow);
    background-color: var(--background);
    position: relative;
    z-index: 1000;
}

/* LEFT SECTION (Logo + Sidebar Toggle + Dropdown) */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon{
    color: var(--title);
}

/* Sidebar Toggle Button */
.bar {
    cursor: pointer;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

/* Default logo */
.default-logo {
    color: var(--default);
    width: 24px !important;
}

/* Cheat Sheets Dropdown */
.dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown p {
    color: var(--title);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
}

.dropdown-options::-webkit-scrollbar{
    height: 7px;
}

.dropdown-options::-webkit-scrollbar-track{
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dropdown-options::-webkit-scrollbar-thumb{
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Dropdown Menu */
.dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    max-height: 400px;
    background-color: var(--background);
    box-shadow: var(--shadow);
    border-radius: 5px;
    overflow-x: auto;
    width: max-content;
    min-width: 160px;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(5px);
}

.dropdown:hover .dropdown-options {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown Links */
.dropdown-options a {
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-options a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* RIGHT SECTION (Support + Theme Switch) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    width: 25%;
}

/* "Buy me a coffee" Button */
.support {
    display: none;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--title);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.support:hover {
    background: var(--accent);
    color: var(--title);
    transform: scale(1.1);
    animation: All 0.2s ease;
}

/* LOGO */
.logo {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* MEDIA QUERIES */
@media (min-width: 768px) {
    .support {
        display: flex;
    }

    .nav-right {
        width: 35%;
    }

    .logo {
        width: 48px;
        height: 48px;
    }

    nav {
        height: 7vh;
    }
}

@media (min-width: 1024px) {
    .bar {
        display: none;
    }

    .nav-right {
        width: 25%;
    }

    nav {
        height: 9vh;
    }

    .logo {
        margin-right: 15px;
    }
}

@media (min-width: 1440px) {
    nav {
        height: 7vh;
    }
}

@media (min-width: 2560px) {
    .nav-right {
        width: 15%;
    }
}
