/* User icon */
.user-icon-container {
    position: relative;
    display: inline-block;
}

.user-icon {
    border-radius: 50%;
    background-color: #3498db; /* Customize the background color */
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for modern look */
    transition: transform 0.2s ease-in-out; /* Hover effect */
    margin-bottom: 10px;
}

.user-icon:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.user-icon-InMenu {
    border-radius: 50%;
    background-color: #3498db; /* Customize the background color */
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
	font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 20px;	
    z-index: 1000;
    width: 290px; /* Adjust width as necessary */
}

/* removed by adding the js code for focusing 
.user-icon-container:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}
*/

/* Dropdown sections */
.dropdown-section {
    padding: 10px 0;
	display: flex;
    flex-direction: column;
}

.dropdown-section + .dropdown-section {
    border-top: 1px solid #ddd;
}

/* First section */
.dropdown-user-info {
    display: flex;
    align-items: center;
}

.dropdown-user-info .user-icon-InMenu {
    width: 30%;
}

.dropdown-user-info .user-details {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10px;
}

.user-details .full-name {
    font-weight: bold;
}

.user-details .email {
    font-size: 0.8em;
    color: #555;
}

/* Links in the dropdown */
.dropdown-link {
    font-size: 16px !important; /* Force override since top header Overriding */
    text-decoration: none;
    color: black;
    padding: 10px;
	border-radius: 10px;
}

.dropdown-link:hover {
    background-color: #f1f1f1;
}

/* ✅ Large Desktops (min-width: 1920px) */
@media (min-width: 1920px) {
    .user-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .user-icon-InMenu {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .user-details .email {
        font-size: 1em;
        color: #555;
    }

    .dropdown-menu {
        width: 330px; /* Slightly wider */
        padding: 25px;
    }

    .dropdown-link {
        font-size: 20px !important;
        padding: 12px;
    }
}

/* ✅ Standard Laptops (max-width: 1280px) */
@media (max-width: 1280px) {
    .user-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .user-icon-InMenu {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .dropdown-menu {
        width: 280px;
        padding: 20px;
    }

    .dropdown-link {
        font-size: 16px !important;
        padding: 10px;
    }
}

/* ✅ Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .user-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .user-icon-InMenu {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .dropdown-menu {
        width: 270px;
        padding: 18px;
    }

    .dropdown-link {
        font-size: 14px !important;
        padding: 8px;
    }
}