/* Navbar Dropdown Styles */
.user-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.user-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-name {
    margin-left: 0.5rem;
    font-weight: 500;
}

.dropdown-arrow {
    transition: transform 0.2s ease-in-out;
}

.rotated {
    transform: rotate(180deg);
}

/* Dropdown menu */
.user-dropdown-menu {
    position: absolute;
    right: 0;
    z-index: 50;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 14rem;
    overflow: hidden;
}

/* Dropdown items */
.dropdown-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-menu-item:hover {
    background-color: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.dropdown-menu-item i {
    width: 1.25rem;
    text-align: center;
    margin-right: 0.75rem;
}

/* Logout button specific styles */
.logout-form {
    border-top: 1px solid #e5e7eb;
}

.logout-item {
    color: #dc3545 !important;
}

.logout-item:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

/* Ensure proper spacing for dropdown content */
.dropdown-user-info {
    padding: 1rem;
    display: flex;
    align-items: center;
}

.user-avatar {
    margin-right: 0.75rem;
}

.user-full-name {
    font-weight: 500;
    color: #111827;
}

.user-subscription {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Ensure dropdown is above other content */
.relative {
    position: relative;
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Ensure dropdown is visible above other content */
.z-50 {
    z-index: 50;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .user-dropdown-menu {
        position: static;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .user-dropdown {
        width: 100%;
    }
    
    .user-btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* Fix for Alpine.js dropdown visibility */
.user-dropdown-menu[x-show] {
    display: block !important;
}

.user-dropdown-menu[x-show="false"] {
    display: none !important;
}
