/* User Menu Styles */
.user-menu-item {
    position: relative;
}

.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 15px !important;
    border-radius: 8px;
    transition: background-color 0.2s;
}

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

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dropdown-header strong {
    font-size: 16px;
}

.dropdown-header small {
    font-size: 12px;
    opacity: 0.9;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #667eea;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item.text-danger:hover {
    background-color: #fff5f5;
    color: #e74c3c;
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 5px 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .user-dropdown-menu {
        right: -10px;
    }
    
    .user-toggle span {
        display: none;
    }
}

/* Dashboard hover card animations */
.hover-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Fix dropdown header text visibility */
.dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.dropdown-header strong {
    color: white !important;
    display: block;
}

.dropdown-header small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Categories dropdown styles */
.dropdown-toggle {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Fix username text color in header */
.user-toggle {
    color: white !important;
}

.user-toggle span {
    color: white !important;
}

.user-toggle i {
    color: white !important;
}

.user-toggle:hover {
    color: white !important;
}

/* Fix Categories dropdown toggle text color */
.dropdown-toggle {
    color: white !important;
}

.dropdown-toggle span {
    color: white !important;
}

.dropdown-toggle i {
    color: white !important;
}

.dropdown-toggle:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ensure nav-link has white text */
.nav-link.dropdown-toggle {
    color: white !important;
}

/* Increase dropdown menu text size */
.dropdown-item {
    font-size: 15px !important;
    padding: 14px 20px !important;
    font-weight: 500 !important;
}

.dropdown-item i {
    font-size: 16px !important;
    width: 24px !important;
}

.dropdown-header strong {
    font-size: 18px !important;
    font-weight: 600 !important;
}

.dropdown-header small {
    font-size: 14px !important;
}

/* Increase user dropdown menu width for better text display */
.user-dropdown-menu {
    min-width: 260px !important;
}
