/* Styles for the main header section */
header {
    width: 100%;
    height: 50px;
    color: white;
    text-align: left;
    font-size: 30px;
    background: linear-gradient(to right, #00008B, #4169E1);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-right: 20px;
}
header .header-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 20px; /* Space between nav items */
    padding-left: 50px; /* Indent the whole nav group */
}
header .header-content span.logo-text {
    white-space: nowrap;
    font-size: 30px;
    margin-right: 10px; /* Space between "Madecool" and first nav item */
}

/* Styles for header links */
header a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    white-space: nowrap; /* Prevent links from wrapping */
}
header a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

/* Styles for user information section */
.user-info {
    color: white;
    font-size: 18px;
    margin-left: auto;
    margin-right: 20px;
    white-space: nowrap; /* Keep user info on one line */
}
.user-info a {
    font-size: 18px;
    margin-left: 10px;
    text-decoration: underline;
}

/* Dropdown menu container */
.dropdown {
    position: relative;
    display: inline-block; /* Allows it to sit next to other nav items */
}

/* Dropdown button styling */
.dropbtn {
    background-color: transparent; /* Make the button background transparent */
    color: white;
    padding: 0; /* Remove padding as link styling handles it */
    font-size: 20px; /* Match other header links */
    border: none;
    cursor: pointer;
    text-decoration: none; /* Ensure it looks like a link */
    white-space: nowrap;
}

.dropbtn:hover, .dropbtn:focus {
    color: #f0f0f0;
    text-decoration: underline;
}

/* Dropdown menu content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #00008B; /* Dark blue background for dropdown */
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px; /* Rounded corners for dropdown */
    padding: 10px 0; /* Vertical padding for content */
    left: 0; /* Align dropdown with the left edge of the button */
    top: 100%; /* Position below the button */
}

/* Links inside the dropdown */
.dropdown-content a {
    color: white; /* White text for dropdown links */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left; /* Align text to the left */
    font-size: 18px; /* Slightly smaller font size for dropdown items */
}

.dropdown-content a:hover {
    background-color: #4169E1; /* Lighter blue on hover for dropdown items */
    text-decoration: none; /* No underline on hover for dropdown items */
}

/* Show the dropdown menu when its parent is hovered over */
.dropdown:hover .dropdown-content {
    display: block; /* Show the dropdown menu on hover */
}
