/* ========================================
   WCVendors Dashboard Navigation - Bean Merchant Theme
   Loaded only on vendor dashboard pages (was in Customizer Additional CSS)
   ======================================== */

/* Main Navigation Container */
#wcv-navigation.wcv-navigation {
    background: #2c1810;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.1);
}

/* Menu List */
.wcv-dashboard-menu {
    background: transparent !important;
    margin: 0;
    padding: 0;
}

/* Individual Menu Items */
.wcv-dashboard-nav-item {
    margin: 4px 0 !important;
    border-radius: 8px;
    overflow: hidden;
}

/* Menu Links */
.wcv-dashboard-nav-item-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 14px 18px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease, border-left-color 0.3s ease, transform 0.3s ease !important;
    background: transparent;
    border-left: 3px solid transparent;
}

/* Hover State */
.wcv-dashboard-nav-item:hover .wcv-dashboard-nav-item-link {
    background: rgba(212, 165, 116, 0.15) !important;
    color: #d4a574 !important;
    border-left-color: rgba(212, 165, 116, 0.5);
    transform: translateX(4px);
}

/* Active State */
.wcv-dashboard-nav-item.active .wcv-dashboard-nav-item-link {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.1) 100%) !important;
    color: #d4a574 !important;
    font-weight: 600 !important;
    border-left-color: #d4a574;
    box-shadow: inset 0 0 20px rgba(212, 165, 116, 0.05);
}

/* Icons */
.wcv-icon-dashboard-icon {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
    opacity: 0.8;
    transition: opacity 0.3s ease, fill 0.3s ease;
    flex-shrink: 0;
}

.wcv-dashboard-nav-item:hover .wcv-icon-dashboard-icon,
.wcv-dashboard-nav-item.active .wcv-icon-dashboard-icon {
    opacity: 1;
    fill: #d4a574 !important;
}

/* Labels */
.wcv-dashboard-nav-item-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Logout Item - Special Styling */
#dashboard-menu-item-logout .wcv-dashboard-nav-item-link {
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    padding-top: 18px !important;
}

#dashboard-menu-item-logout:hover .wcv-dashboard-nav-item-link {
    background: rgba(231, 76, 60, 0.15) !important;
    color: #e74c3c !important;
    border-left-color: #e74c3c;
}

#dashboard-menu-item-logout:hover .wcv-icon-dashboard-icon {
    fill: #e74c3c !important;
}

/* Shopify Items - Special Accent */
li:has(a[href*="shopify-settings"]) .wcv-dashboard-nav-item-link::after,
li:has(a[href*="import-products"]) .wcv-dashboard-nav-item-link::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #95bf47;
    border-radius: 50%;
    opacity: 0.8;
}

/* Secondary Menu */
.wcv-dashboard-menu.secondary {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    #wcv-navigation.wcv-navigation {
        border-radius: 0;
        padding: 6px;
    }
    .wcv-dashboard-nav-item-link {
        padding: 12px 14px !important;
        font-size: 0.9rem !important;
    }
    .wcv-icon-dashboard-icon {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Focus state for accessibility */
.wcv-dashboard-nav-item-link:focus {
    outline: 2px solid #d4a574;
    outline-offset: 2px;
}
