/* Advanced Menu Styles - White/Black/Minimal Green Theme */
.menu-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    background-color: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.group:hover .menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Badge colors - updated with minimal green theme */
.badge-green { 
    background-color: #d1fae5; 
    color: #065f46; 
    border: 1px solid #10b981;
}
.badge-blue { 
    background-color: #dbeafe; 
    color: #1e40af; 
    border: 1px solid #3b82f6;
}
.badge-red { 
    background-color: #fee2e2; 
    color: #991b1b; 
    border: 1px solid #ef4444;
}
.badge-purple { 
    background-color: #f3e8ff; 
    color: #6b21a8; 
    border: 1px solid #8b5cf6;
}
.badge-orange { 
    background-color: #ffedd5; 
    color: #9a3412; 
    border: 1px solid #f97316;
}

/* Hover effects - updated with minimal green */
.menu-item-hover:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    transform: translateX(3px);
    border-left: 3px solid #10b981;
}

/* Gradient backgrounds - minimal green */
.gradient-header {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-bottom: 1px solid #10b981;
}

/* Animation for menu items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    animation: fadeInUp 0.2s ease forwards;
}

/* Additional styles for the white/black/green theme */
.menu-link {
    color: #374151;
    transition: all 0.2s ease;
}

.menu-link:hover {
    color: #10b981;
}

.menu-divider {
    border-bottom: 1px solid #e5e7eb;
}

.menu-title {
    color: #111827;
    font-weight: 600;
    border-bottom: 2px solid #10b981;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Active menu item */
.menu-active {
    background-color: #f0fdf4;
    color: #10b981;
    border-left: 3px solid #10b981;
}

/* Submenu styles */
.submenu-item {
    color: #6b7280;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    color: #10b981;
    background-color: #f9fafb;
}

/* Icon styles */
.menu-icon {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.menu-item:hover .menu-icon {
    color: #10b981;
}

/* Mobile menu adjustments */
@media (max-width: 768px) {
    .menu-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: #f9fafb;
    }
    
    .menu-item-hover:hover {
        transform: none;
        background: #f3f4f6;
        color: #10b981;
    }
}

/* Focus states for accessibility */
.menu-item:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Disabled state */
.menu-disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.menu-disabled:hover {
    background-color: transparent;
    color: #9ca3af;
    transform: none;
}

/* Loading state */
.menu-loading {
    position: relative;
    color: transparent;
}

.menu-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Scrollbar styling for menus */
.menu-scroll {
    scrollbar-width: thin;
    scrollbar-color: #10b981 #f3f4f6;
}

.menu-scroll::-webkit-scrollbar {
    width: 6px;
}

.menu-scroll::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.menu-scroll::-webkit-scrollbar-thumb {
    background-color: #10b981;
    border-radius: 3px;
}

.menu-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #059669;
}

/* Search input in menus */
.menu-search {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #374151;
    transition: all 0.2s ease;
}

.menu-search:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

/* Tooltip for menu items */
.menu-tooltip {
    background-color: #111827;
    color: white;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.menu-tooltip::before {
    content: '';
    position: absolute;
    border-style: solid;
}

/* Notification badge */
.menu-notification {
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nested menu styling */
.nested-menu {
    margin-left: 1rem;
    border-left: 1px solid #e5e7eb;
    padding-left: 0.5rem;
}

/* Compact menu variant */
.menu-compact .menu-item {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.875rem;
}

/* Large menu variant */
.menu-large .menu-item {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1.125rem;
}

/* Rounded menu corners */
.menu-rounded {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Menu header/footer */
.menu-header {
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.menu-footer {
    background-color: #f9fafb;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
}