
.user-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: -5px;
    background: var(--primary);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1201;
    padding: 0.5em 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95em;
    border: 1.5px solid var(--highlight);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
}

.user-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    transform: rotate(45deg);
    border-top: 1.5px solid var(--highlight);
    border-left: 1.5px solid var(--highlight);
    z-index: -1;
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 13px 28px;
    color: var(--light);
    cursor: pointer;
    gap: 10px;
    transition: all 0.2s ease;
    border-radius: 0;
    font-family: inherit;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    min-height: 36px;
}

.user-dropdown .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.2), transparent);
    transition: width 0.5s;
    z-index: 0;
}

.user-dropdown .dropdown-item:hover::before,
.user-dropdown .dropdown-item:focus::before {
    width: 100%;
}

.user-dropdown .dropdown-item:hover, 
.user-dropdown .dropdown-item:focus {
    background: rgba(220, 20, 60, 0.05);
    color: var(--highlight);
    padding-left: 38px;
}

/* Deshabilitar hover en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .user-dropdown .dropdown-item:hover::before {
        width: 0;
    }
    
    .user-dropdown .dropdown-item:hover {
        background: none;
        color: var(--light);
        padding-left: 28px;
    }
}

.user-dropdown .dropdown-item span {
    font-size: 1em;
    position: relative;
    z-index: 1;
}

/* Unify icon size for all dropdown items */
.user-dropdown .dropdown-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
}

/* Username style in user menu - consolidated from user-session.css */
#user-icon #user-name {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-left: 5px;
    vertical-align: middle;
}

.user-dropdown .dropdown-item span:first-child {
    transition: transform 0.3s ease;
}

.user-dropdown .dropdown-item:hover span:first-child,
.user-dropdown .dropdown-item:focus span:first-child {
    transform: scale(1.2);
}

/* Main menu dropdown - clase separada */
.main-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: -5px;
    background: var(--primary);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1201;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1.5px solid var(--highlight);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    min-width: 120px;
    font-size: 0.85em;
    padding: 0.3rem 0;
}

.main-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.main-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    transform: rotate(45deg);
    border-top: 1.5px solid var(--highlight);
    border-left: 1.5px solid var(--highlight);
    z-index: -1;
}

.main-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    color: var(--light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.85em;
}

.main-dropdown .dropdown-item:hover,
.main-dropdown .dropdown-item:focus {
    background: rgba(220, 20, 60, 0.1);
    color: var(--highlight);
}

/* Deshabilitar hover en dispositivos táctiles para main-dropdown */
@media (hover: none) and (pointer: coarse) {
    .main-dropdown .dropdown-item:hover {
        background: none;
        color: var(--light);
    }
}

/* Main menu dropdown specific styles by ID */
#main-menu-dropdown {
    /* Estilos específicos si se necesitan override */
}
