/* dropdown.css */

/* User Dropdown Container */
.user-dropdown {
    position: relative; /* Establishes positioning context for dropdown */
    display: inline-block;
    margin-left: 15px;
}

/* Dropdown Content */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 100%; /* Positions the dropdown directly below the user icon */
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; /* High z-index to appear above other elements */
    border-radius: 5px; /* Optional: Rounded corners */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transitions */
    opacity: 0;
    visibility: hidden;
}

/* Show the dropdown when the 'show' class is added */
.dropdown-content.show {
    opacity: 1;
    visibility: visible;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Hover effect for dropdown links */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Log In Button Styling */
.login-button {
    background-color: black;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    border-radius: 5px; /* Optional: Rounded corners */
}

/* Hover effect for Log In button */
.login-button:hover {
    background-color: #333333;
}
