:root {
    --nav-gradient: linear-gradient(135deg, #01d6af 0%, #0a33ec 100%);
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --height: 70px;
}


/* 1. Navbar Container */

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--height);
    background: var(--nav-gradient);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 2000;
    box-shadow: var(--shadow);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* 2. Logo Area */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 45px;
    height: auto;
}

.logo p {
    color: white;
    font-weight: 700;
    font-size: 20px;
    margin: 0;
    white-space: nowrap;
}


/* 3. Right Side Actions (Links + Profile) */

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-list li a,
.dropbtn {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.nav-list li a:hover,
.dropbtn:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* 4. The Profile Icon (Always Visible) */

.nav-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.nav-profile:hover {
    border-color: white;
    transform: scale(1.1);
}

.nav-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 5. Dropdown Logic (Desktop) */

.drop-down {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
}

.dropdown-content a:hover {
    color: rgb(0, 0, 0);
    background: #e6e0e0;
}

.drop-down:hover .dropdown-content {
    display: block;
}


/* 6. Mobile View Fixes */

.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    .nav-list {
        display: none;
        /* Toggled by JS */
        flex-direction: column;
        position: absolute;
        top: var(--height);
        left: 0;
        width: 100%;
        background: #0a33ec;
        /* Strong blue for mobile */
        padding: 20px 0;
        box-shadow: var(--shadow);
    }
    .nav-list.active {
        display: flex;
    }
    .nav-list li {
        width: 100%;
        text-align: center;
    }
    .nav-list li a,
    .dropbtn {
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }
    /* Fix for "Ma na" overlap: On mobile, dropdown should expand the menu, not float */
    .dropdown-content {
        position: static;
        width: 100%;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
    }
    .dropdown-content a {
        color: white;
    }
    .drop-down.active .dropdown-content {
        display: block;
    }
}

@media (max-width: 576px) {
    .logo p {
        display: none;
    }
    /* On tiny phones, hide text to save space */
}