@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');


body {
    background-size: cover;
    background-color: #252525;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: center;
    height: auto;
    min-height: 100%;
}

div {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Header styling */
.header {
    min-height: 70px;
    max-height: 15vh; /* Adjust max height for smaller screens */
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #373b41;

    border-bottom: 1px rgba(205, 205, 205, 0.12) solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 20px;
    z-index: 1200;
    box-sizing: border-box;
}

.header img {
    /*width: 110px;
    height: 102px;*/
    max-width: 60px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.nav-item {
    /* width: 12rem; */
    height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    position: relative; /* This allows absolute positioning of children */
    padding: 0px 6px;
    margin: 5px;
}

.nav-item.active {
    background: #5dd770;
    border-radius: 8px;
}

.nav-text {
    display: inline;
}

.nav-icon {
    display: none;

    width: 35px;
    height: 35px;
    vertical-align: middle;
}

.user-initial {
    width: 70px;
    height: 70px;
    background: #78aff2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: 0.2s ease-in-out;
}

.user-initial:hover {
    transform: scale(1.03);
    transition: 0.2s ease-in-out;
}

/* Profile Dropdown Modal */
.profile-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 85px;
    right: 0;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    width: 150px;
    padding: 10px;
}

/* Dropdown Options */
.dropdown-option {
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    color: white;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #444;
}

/* Main content styling */
.content {
    margin-top: 90px;
    padding: 20px;
}

/* Media query for mobile */
@media screen and (max-width: 1300px) {
    .header {
        padding: 0.5rem 20px;
    }

    .header img {
        max-width: 60px;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-item {
        /* width: 8rem; */
        height: 2rem;
        font-size: 1.3rem;
    }

    .user-initial {
        width: min(70px, 12vw);
        height: min(70px, 12vw);
        font-size: 1.5rem;
    }
}

/* Problematic range*/
@media screen and (max-width: 1085px) {
    .header {
        padding: 0.5rem 15px;
    }
    .nav-links {
        gap: 0.5rem;
    }
    .nav-item {
        /* width: 7rem; */
        font-size: 1.2rem;
    }
    .user-initial {
        width: min(65px, 12vw);
        height: min(65px, 12vw);
        font-size: 1.5rem;
    }
}
/* Media query for mobile */
@media screen and (max-width: 800px) {
    .header {
        padding: 10px;
    }

    .header img {
        max-width: 54px; /* Smaller logo for mobile */
    }

    .nav-links {
        gap: 0;
        padding: 4px;
    }

    /* Add a mobile menu button here if desired */

    .nav-item {
        width: auto;
        height: auto;
        margin: 0;
    }

    .nav-text {
        display: none;
    }

    .nav-icon {
        display: inline;
    }

    .user-initial {
        width: min(65px, 12vw);
        height: min(65px, 12vw);
        font-size: 1.5rem;
    }
}
