/* Contenitore in alto a destra */
.profile-icon-container {
    position: fixed;
    top: 20px;
    right: 10px;
    z-index: 9999; /* aumentato per sicurezza */
}

/* Cerchio semi-trasparente come app-icon */
.profile-icon {
    width: 60px;
    height: 60px;
    border-radius: 22px;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.profile-icon:hover {
    transform: scale(1.1);
    background-color: rgba(0,0,0,0.6);
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dropdown */
.profile-dropdown {
    position: absolute;
    top: 70px;
    right: 0;
    z-index: 10000;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    min-width: 160px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.profile-dropdown a {
    display: block;
    padding: 12px 14px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.profile-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}