/* Login Dropdown Widget Styles */
.login-dropdown-container {
    position: relative;
    display: inline-block;
}

.login-icon-trigger {
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.login-icon-trigger:hover {
    opacity: 0.8;
}

.login-icon-trigger svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.login-icon-trigger:hover svg {
    transform: scale(1.1);
}

.login-icon-trigger img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.login-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    margin-top: 10px;
}

.login-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #2a2a2a;
    transform: rotate(45deg);
    z-index: -1;
}

.login-dropdown-container.active .login-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

.login-dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.login-dropdown-menu li:last-child {
    border-bottom: none;
}

.login-dropdown-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.login-dropdown-menu li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.login-dropdown-menu li:hover::before {
    left: 100%;
}

.login-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
    color: #fff;
}

/* Logout link special styling */
.login-dropdown-menu li:last-child a {
    color: #ff6b6b;
}

.login-dropdown-menu li:last-child a:hover {
    color: #ff5252;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-dropdown-menu {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .login-dropdown-menu {
        right: -20px;
        min-width: 160px;
    }
    
    .login-dropdown-menu a {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Widget specific styles */
.widget .login-dropdown-container {
    width: 100%;
}

.widget .login-dropdown-menu {
    right: auto;
    left: 0;
}

/* Elementor compatibility */
.elementor-widget .login-dropdown-container {
    width: auto;
}

/* Animation for menu items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-dropdown-container.active .login-dropdown-menu li {
    animation: fadeInUp 0.3s ease forwards;
}

.login-dropdown-container.active .login-dropdown-menu li:nth-child(1) {
    animation-delay: 0.1s;
}

.login-dropdown-container.active .login-dropdown-menu li:nth-child(2) {
    animation-delay: 0.15s;
}

.login-dropdown-container.active .login-dropdown-menu li:nth-child(3) {
    animation-delay: 0.2s;
}