.header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;  /* Just below the dropdown components */
    height: 121px;
    color: var(--nav-text);
    background-color: var(--nav-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none !important;
}

.box-area {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: var(--nav-bg);
    transition: background-color 0.3s ease;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .box-area {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    background-color: var(--nav-bg);
    transition: background-color 0.3s ease;
}

.header li {
    float: left;
    display: flex;
    align-items: center;
}

.header li a {
    padding: 40px 20px;
    display: block;
    color: var(--nav-text);
    font-family: Poppins;
    letter-spacing: 4px;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header .logo {
    display: block;
    float: left;
    font-size: 2em;
    padding: 28px 20px;
    text-decoration: none;
}

.header .logo img {
    height: 65px !important;
    width: auto !important;
    padding: 0 !important;
    transition: filter 0.3s ease;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
}

[data-theme="dark"] .header .logo img {
    filter: brightness(0) saturate(100%) invert(93%) sepia(8%) saturate(382%) hue-rotate(322deg) brightness(103%) contrast(93%) !important;
    opacity: 0.9 !important;
}

.header .menu {
    max-height: 0;
    transition: max-height .3s ease-out;
    background-color: var(--nav-bg);
}

.header .menu-icon {
    cursor: pointer;
    float: right;
    padding: 55px 30px;
    position: relative;
    user-select: none;
}

.header .menu-icon .navicon {
    background: var(--nav-text);
    display: block;
    height: 2px;
    position: relative;
    transition: background-color 0.3s ease;
    width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
    background: var(--nav-text);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: background-color 0.3s ease;
    width: 100%;
}

.header .menu-icon .navicon:before {
    top: 5px;
}

.header .menu-icon .navicon:after {
    top: -5px;
}

.header .menu-btn {
    display: none;
}

.header .menu-btn:checked ~ .menu {
    max-height: 300px;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    top: 0;
}

/* 48em = 768px */

@media (min-width: 769px) {
    .header li {
        float: left;
    }
    .header li a {
        padding: 40px 20px;
        font-size: 20px;
    }
    .header .menu {
        clear: none;
        float: right;
        max-height: none;
        font-size: x-small;
        background: none;
    }
    .header .menu-icon {
        display: none;
    }
    /* Force box-shadow to be visible on wider screens regardless of menu state */
    .box-area {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    [data-theme="dark"] .box-area {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    }
    #logoutBtn {
        display: inline-block;
        color: var(--nav-text) !important;
        text-decoration: none;
        font-family: Poppins;
        cursor: pointer;
        padding: 40px 20px;
        font-size: 20px;
        background: none;
        border: none;
        letter-spacing: 4px;
    }
}

@media (max-width: 768px) {
    .header .menu {
        background-color: var(--nav-bg);
        transition: all 0.3s ease;
        position: fixed;
        top: 121px;
        left: 0;
        right: 0;
        z-index: 2000;
    }
    
    .header li {
        background-color: var(--nav-bg);
        transition: background-color 0.3s ease;
        width: 100%;
        text-align: center;
    }

    .header li a,
    .header li #logoutBtn {
        padding: 20px;
        display: block;
        width: 100%;
        text-align: center;
        color: var(--nav-text);
        font-family: Poppins;
        letter-spacing: 4px;
        font-size: 15px;
        text-decoration: none;
    }

    #logoutBtn {
        padding: 20px;
        text-align: center;
        color: var(--nav-text) !important;
        width: 100%;
        display: block;
        font-family: Poppins;
        letter-spacing: 4px;
        font-size: 15px;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
    }

    .header li .profile-container {
        padding: 20px;
        justify-content: center;
    }

    .header li .profile-container .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }
}

body{
    font-family: 'Open Sans', sans-serif;
}
ul a:hover{
    color: #0099ff !important;
}
nav li{
    text-align: center;
    text-transform: uppercase;
}
li > a:after{
    content: '';
    display: block;
    height: 1.5px;
    background: #0099ff;
    transform: scaleX(0);
    transition: transform .3s;
}
li > a:hover:after{
    transform: scaleX(1);
    transition: transform .3s;
}
.active{
    color: #0099ff !important;
}

#logoutBtn {
    display: inline-block;
    color: var(--nav-text) !important;
    text-decoration: none;
    font-family: Poppins;
    cursor: pointer;
    padding: 40px 20px;
    transition: color 0.3s ease;
}

#logoutBtn:hover {
    color: #0099ff !important;
}

.user-auth-container {
    position: fixed;
    top: 121px;
    width: 100%;
    background-color: #F5E6D3;
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Remove any horizontal lines */
.header::before,
.header::after,
.box-area::before,
.box-area::after {
    display: none;
}

/* Language toggle button */
.language-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: Poppins;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0.8;
    min-width: 70px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A1929;  /* Navy blue by default */
    color: #F5E6D3;  /* Cream color for the text */
}

[data-theme="dark"] .language-toggle {
    background: #F5E6D3;  /* Cream background in dark mode */
    color: #0A1929;  /* Navy blue for the text in dark mode */
}

.language-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 1;
}

/* Profile container adjustments */
.header li .profile-container {
    padding: 40px 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.header li .profile-container .profile-image {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 10000;
    display: block;
    margin: 0;
}

@media (max-width: 768px) {
    .header li .profile-container {
        padding: 20px;
        justify-content: center;
    }
}


