/* ------------------------General Styling------------------------ */
body {
    margin: 0;
    padding: 0;
    font-family: "Arial", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

header, main, footer {
    display: block;
}

button {
    border-radius: 9999px;
    cursor: pointer;
}

/* ------------------------Header----------------------- */
.header {
    height: 6vh;
    
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
}

.header__title {
    font-size: 3vh;
    margin-left: 1vh;
    display: flex;
    align-items: center;
    text-wrap: nowrap;
    overflow: hidden;
}

.header__navigation {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 2vh;
}

.navigation__button {
    border: none;
    border-radius: 5px;
    padding: 2.1vh 0.5vw;
    margin: auto 0.5vw;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1.5vh;
}

.navigation__button:hover {
    color: var(--primary-color);
}

.navigation__button.active {
    border-bottom: 0.6vh solid var(--primary-color);
}

.header__end {
    padding-left: 1vh;
    padding-right: 1vh;
    display: flex;
    gap: 2vh;
}

.end__button {
    border: none;
    border-radius: 5px;
    margin: auto 0.2vh;
    background-color: var(--background-color);
}

.end__button img {
    width: 3.5vh;
}

/* Container needed to position the dropdown content */
.profile-dropdown {
    position: relative;
    display: flex;
}

/* The actual menu - hidden by default */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0; /* Align to the right edge of the button */
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 
                0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 100; /* Ensure it stays above the main content */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: 6vh;
    overflow: hidden; /* Keeps background color within rounded corners */
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 1.5vh;
    transition: background-color 0.2s;
}

/* Hover effect for links */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show the menu when hovering over the container */
.profile-dropdown:hover .dropdown-content {
    display: block;
}

/* Optional: Style for logout to make it stand out */
.logout-link {
    color: #d5100a !important; /* Red-ish color */
}

.dropdown-content hr {
    margin: 0;
    border: 0;
    border-top: 1px solid #eee;
}

@media (max-width: 1000px) {
  .header__title{
    display: none;
  }
}
/* ------------------------Main----------------------- */
.main {
    height: 94vh;
    padding: 2vh 2vw;
}

.main__container {
    height: 100%;
    width: 100%;
}