/* ============================================= */
/* MediMarket UX Research Enhancements CSS      */
/* Comprehensive B2B Medical Equipment Improvements */
/* ============================================= */

/* This CSS file implements UX research-driven enhancements
   for the MediMarket platform, focusing on B2B medical equipment
   marketplace optimization. All styles integrate with the existing
   design system using established variables and patterns. */

/* CSS Variables for consistent hover states */
:root {
  --primary-color: #1058FF;
  --primary-hover: #0747d6;
  --primary-dark: #01315E;
  --text-white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
}

/* ============================================= */
/* REAL-TIME MONITORING STYLES                  */
/* ============================================= */

/* Metric Cards - Using brand colors */
.metric-card {
  background: var(--brand-primary, #1058FF);
  border-radius: 1rem;
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Specific metric card variants using brand colors */
.metric-card-cpu {
  background: var(--brand-primary, #1058FF);
}

.metric-card-memory {
  background: var(--brand-secondary, #0d9488);
}

.metric-card-disk {
  background: var(--brand-info, #3B82F6);
}

.metric-card-connections {
  background: var(--brand-warning, #F59E0B);
}

/* Metric labels and values */
.metric-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin: 0;
}

.metric-sublabel {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

/* Live indicator */
.metric-live-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: white;
  opacity: 0.9;
}

.metric-live-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand-success, #10B981);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* Chart containers */
.chart-container {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.chart-wrapper {
  position: relative;
  overflow: hidden;
}

.chart-wrapper canvas {
  max-width: 100%;
  height: 100% !important;
}

/* Activity feed */
.activity-feed {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.activity-feed::-webkit-scrollbar {
  width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
  background: transparent;
}

.activity-feed::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.activity-item {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s;
}

.activity-item:hover {
  background-color: #f9fafb;
}

.activity-item.new {
  animation: slideIn 0.3s ease-out;
  background-color: rgba(16, 88, 255, 0.05);
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Gauge styles */
.gauge-container {
  position: relative;
  width: 200px;
  height: 100px;
  margin: 0 auto;
}

.gauge-background {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
  border-radius: 100px 100px 0 0;
}

.gauge-fill {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 10px solid white;
  border-bottom: none;
  border-radius: 100px 100px 0 0;
  transform-origin: center bottom;
  transition: transform 0.5s ease-out, border-color 0.5s ease;
}

/* ============================================= */
/* 1. HERO SECTION ENHANCEMENTS                 */
/* ============================================= */

/* Enhanced Hero Container with Prominent Search */
.hero-search-container {
  position: relative;
  padding: var(--spacing-3xl) 0;
  /* Background handled by Tailwind classes in the template */
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background Pattern Overlay - Removed per user request (no gradients) */

/* Hero Content Wrapper */
.hero-search-container .hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Hero Title with Enhanced Typography */
.hero-search-container .hero-title-enhanced {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Subtitle */
.hero-search-container .hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Prominent Search Box */
.hero-search-box {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
}

.hero-search-form {
  display: flex;
  gap: var(--spacing-md);
  align-items: stretch;
}

.hero-search-input {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: var(--transition-fast);
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(16, 88, 255, 0.1);
}

.hero-search-button {
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  white-space: nowrap;
}

.hero-search-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 88, 255, 0.3);
}

/* Hero Value Propositions - 3 Column Layout */
.hero-value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto var(--spacing-2xl);
}

.value-prop-item {
  text-align: center;
  color: var(--text-white);
}

.value-prop-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.value-prop-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.value-prop-desc {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  line-height: 1.5;
}

/* Dual CTA Strategy */
.hero-cta-group {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.hero-cta-primary {
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--text-white);
  color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.hero-cta-secondary {
  padding: var(--spacing-md) var(--spacing-xl);
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

/* ============================================= */
/* 2. TRUST SIGNALS & SOCIAL PROOF              */
/* ============================================= */

/* Trust Metrics Bar */
.trust-metrics-bar {
  background: var(--bg-primary);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--spacing-lg) 0;
  margin: var(--spacing-2xl) 0;
}

.trust-metrics-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.trust-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--spacing-md);
}

.trust-metric-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.trust-metric-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-metric-icon {
  font-size: var(--font-size-lg);
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

/* Verified Seller Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px 10px;
  background: var(--success-color);
  color: var(--text-white);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verified-badge i {
  font-size: var(--font-size-sm);
}

/* Testimonial Carousel */
.testimonial-carousel {
  padding: var(--spacing-3xl) 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.testimonial-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.testimonial-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.testimonial-content {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.testimonial-info {
  text-align: left;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--spacing-md);
  justify-content: center;
}

.testimonial-rating i {
  color: var(--warning-color);
  font-size: var(--font-size-lg);
}

/* ============================================= */
/* 3. ENHANCED B2B PRODUCT CARDS                */
/* ============================================= */

/* B2B Specific Product Card */
.product-card-b2b {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-b2b:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Product Condition Badge */
.product-condition-badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-condition-badge.new {
  background: var(--success-color);
  color: var(--text-white);
}

.product-condition-badge.refurbished {
  background: var(--secondary-color);
  color: var(--text-white);
}

.product-condition-badge.used {
  background: var(--warning-color);
  color: var(--text-white);
}

/* Product Warranty Indicator */
.product-warranty-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px 8px;
  background: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.product-warranty-indicator i {
  font-size: var(--font-size-sm);
}

/* Bulk Purchase Badge */
.product-bulk-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px 8px;
  background: rgba(16, 88, 255, 0.1);
  color: var(--primary-color);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

/* Financing Badge */
.product-financing-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px 8px;
  background: rgba(0, 188, 212, 0.1);
  color: var(--secondary-color);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

/* B2B Product Card Content */
.product-card-b2b .product-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}

.product-card-b2b .product-content {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-b2b .product-badges-row {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.product-card-b2b .product-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-b2b .product-specs {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.product-card-b2b .product-spec-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.product-card-b2b .product-spec-item i {
  color: var(--text-muted);
  width: 16px;
  text-align: center;
}

.product-card-b2b .product-pricing {
  margin-top: auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--gray-200);
}

.product-card-b2b .product-price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.product-card-b2b .product-price-unit {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 400;
}

/* Quick Inquiry Button */
.quick-inquiry-btn {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.quick-inquiry-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.quick-inquiry-btn.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.quick-inquiry-btn.secondary:hover {
  background: rgba(16, 88, 255, 0.05);
}

/* ============================================= */
/* 4. SEARCH & DISCOVERY ENHANCEMENTS           */
/* ============================================= */

/* Search Autocomplete Dropdown */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-autocomplete.active {
  display: block;
}

.search-suggestion-group {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--gray-100);
}

.search-suggestion-group:last-child {
  border-bottom: none;
}

.search-suggestion-header {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-suggestion-item {
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-suggestion-item:hover {
  background: var(--gray-50);
}

.search-suggestion-item i {
  color: var(--text-muted);
  width: 20px;
  text-align: center;
}

.search-suggestion-text {
  flex: 1;
  color: var(--text-primary);
}

.search-suggestion-text mark {
  background: rgba(16, 88, 255, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

.search-suggestion-count {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Trending Searches */
.search-trending {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--gray-50);
  border-radius: var(--border-radius-md);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.search-trending-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.search-trending-items {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.search-trending-item {
  padding: 4px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.search-trending-item:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(16, 88, 255, 0.05);
}

/* Category Mega Menu */
.category-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-xl);
  display: none;
  z-index: 1000;
}

.category-mega-menu.active {
  display: block;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
}

.mega-menu-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color);
}

.mega-menu-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.mega-menu-item {
  padding: var(--spacing-xs) 0;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-menu-item:hover {
  color: var(--primary-color);
  padding-left: var(--spacing-sm);
}

.mega-menu-item-count {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
}

.mega-menu-featured {
  grid-column: span 4;
  padding: var(--spacing-lg);
  background: var(--gray-50);
  border-radius: var(--border-radius-md);
  margin-top: var(--spacing-lg);
}

.mega-menu-featured-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-menu-featured-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.mega-menu-featured-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-md);
  background: var(--bg-primary);
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
  text-decoration: none;
  color: var(--text-primary);
}

.mega-menu-featured-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mega-menu-featured-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 88, 255, 0.1);
  border-radius: var(--border-radius-md);
  color: var(--primary-color);
  font-size: var(--font-size-lg);
}

/* Mobile Filter Drawer */
.filter-drawer-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: var(--bg-primary);
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1100;
  overflow-y: auto;
}

.filter-drawer-mobile.active {
  transform: translateX(0);
}

.filter-drawer-header {
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.filter-drawer-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.filter-drawer-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.filter-drawer-close:hover {
  background: var(--gray-200);
}

.filter-drawer-content {
  padding: var(--spacing-lg);
}

.filter-group {
  margin-bottom: var(--spacing-xl);
}

.filter-group-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-group-title i {
  transition: var(--transition-fast);
}

.filter-group-title.collapsed i {
  transform: rotate(-90deg);
}

.filter-group-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.filter-group-content.collapsed {
  display: none;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filter-checkbox label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  cursor: pointer;
  flex: 1;
}

.filter-count {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.filter-drawer-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-primary);
  padding: var(--spacing-lg);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: var(--spacing-md);
}

.filter-drawer-footer button {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-clear-btn {
  background: var(--gray-100);
  color: var(--text-secondary);
  border: 1px solid var(--gray-200);
}

.filter-clear-btn:hover {
  background: var(--gray-200);
}

.filter-apply-btn {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
}

.filter-apply-btn:hover {
  background: var(--primary-hover);
}

/* Filter Drawer Overlay */
.filter-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 1099;
}

.filter-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================= */
/* 5. MOBILE-FIRST OPTIMIZATIONS                */
/* ============================================= */

/* Mobile Sticky Search Bar */
.mobile-sticky-search {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  padding: var(--spacing-sm);
  box-shadow: var(--shadow-md);
  z-index: 100;
  display: none;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-sticky-search.active {
  transform: translateY(0);
}

.mobile-sticky-search .search-wrapper {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.mobile-sticky-search .search-input {
  flex: 1;
  padding: var(--spacing-sm);
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
}

.mobile-sticky-search .search-btn {
  padding: var(--spacing-sm);
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom Navigation for Mobile */
.bottom-nav-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--gray-200);
  padding: var(--spacing-sm) 0;
  display: none;
  z-index: 100;
}

.bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--spacing-xs);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

.bottom-nav-item.active {
  color: var(--primary-color);
}

.bottom-nav-item i {
  font-size: var(--font-size-xl);
}

.bottom-nav-item span {
  font-size: 10px;
  font-weight: 500;
}

.bottom-nav-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger-color);
  color: var(--text-white);
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* Touch-Friendly Buttons */
.touch-friendly-btn {
  min-height: 44px;
  min-width: 44px;
  padding: var(--spacing-sm) var(--spacing-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.touch-friendly-btn:active {
  transform: scale(0.95);
}

/* Mobile Swipe Gestures Support */
.swipeable-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.swipeable-container::-webkit-scrollbar {
  display: none;
}

.swipeable-item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ============================================= */
/* 6. CONVERSION OPTIMIZATION ELEMENTS          */
/* ============================================= */

/* Urgency Indicators */
.urgency-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px 8px;
  background: rgba(244, 67, 54, 0.1);
  color: var(--danger-color);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  animation: pulse 2s infinite;
}

.urgency-indicator i {
  font-size: var(--font-size-sm);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
  }
}

/* Price Drop Badge */
.price-drop-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 6px 10px;
  background: var(--danger-color);
  color: var(--text-white);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.price-drop-badge::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid var(--danger-color);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.price-drop-percentage {
  font-size: var(--font-size-sm);
  font-weight: 700;
}

/* Recently Viewed Bar */
.recently-viewed-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-md);
  max-width: 320px;
  z-index: 90;
  transform: translateX(400px);
  transition: transform 0.3s ease-in-out;
}

.recently-viewed-bar.active {
  transform: translateX(0);
}

.recently-viewed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.recently-viewed-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.recently-viewed-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  border: none;
}

.recently-viewed-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.recently-viewed-item {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs);
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.recently-viewed-item:hover {
  background: var(--gray-50);
}

.recently-viewed-image {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background: var(--gray-100);
  flex-shrink: 0;
}

.recently-viewed-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recently-viewed-name {
  font-size: var(--font-size-xs);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recently-viewed-price {
  font-size: var(--font-size-xs);
  color: var(--primary-color);
  font-weight: 600;
}

/* Comparison Tool */
.comparison-tool {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-md);
  z-index: 95;
  transition: transform 0.3s ease-in-out;
}

.comparison-tool.active {
  transform: translateX(-50%) translateY(0);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.comparison-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-count {
  background: var(--primary-color);
  color: var(--text-white);
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.comparison-items {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.comparison-item {
  width: 60px;
  height: 60px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-md);
  background: var(--gray-100);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.comparison-item.filled {
  border-color: var(--primary-color);
  background: var(--bg-primary);
}

.comparison-item-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--danger-color);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid var(--bg-primary);
}

.comparison-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.comparison-btn {
  flex: 1;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.comparison-btn.primary {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
}

.comparison-btn.primary:hover {
  background: var(--primary-hover);
}

.comparison-btn.secondary {
  background: var(--gray-100);
  color: var(--text-secondary);
  border: 1px solid var(--gray-200);
}

.comparison-btn.secondary:hover {
  background: var(--gray-200);
}

/* ============================================= */
/* 7. RESPONSIVE MEDIA QUERIES                  */
/* ============================================= */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  /* Hero adjustments */
  .hero-value-props {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: left;
  }
  
  .value-prop-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-align: left;
  }
  
  .value-prop-icon {
    margin: 0;
    flex-shrink: 0;
  }
  
  /* Trust metrics */
  .trust-metrics-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  /* Mega menu adjustments */
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mega-menu-featured-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Styles (below 768px) */
@media (max-width: 768px) {
  /* Show mobile-specific elements */
  .mobile-sticky-search {
    display: block;
  }
  
  .bottom-nav-mobile {
    display: block;
  }
  
  /* Hero mobile optimization */
  .hero-search-container {
    min-height: auto;
    padding: var(--spacing-2xl) 0;
  }
  
  .hero-search-container .hero-title-enhanced {
    font-size: var(--font-size-3xl);
  }
  
  .hero-search-container .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-search-form {
    flex-direction: column;
  }
  
  .hero-search-button {
    width: 100%;
  }
  
  .hero-value-props {
    display: none;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    padding: 0 var(--spacing-md);
  }
  
  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
  }
  
  /* Trust metrics mobile */
  .trust-metrics-container {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .trust-metric-item {
    width: 100%;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
  }
  
  .trust-metric-item:last-child {
    border-bottom: none;
  }
  
  /* Product cards mobile */
  .product-card-b2b {
    margin-bottom: var(--spacing-md);
  }
  
  /* Search autocomplete mobile */
  .search-autocomplete {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    border-radius: 0;
    max-height: calc(100vh - 60px);
  }
  
  /* Mega menu mobile */
  .category-mega-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    overflow-y: auto;
  }
  
  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .mega-menu-featured {
    display: none;
  }
  
  /* Recently viewed bar mobile */
  .recently-viewed-bar {
    right: 10px;
    left: 10px;
    max-width: none;
    bottom: 70px; /* Above bottom nav */
  }
  
  /* Comparison tool mobile */
  .comparison-tool {
    right: 10px;
    left: 10px;
    transform: translateX(0) translateY(100px);
    bottom: 70px; /* Above bottom nav */
  }
  
  .comparison-tool.active {
    transform: translateX(0) translateY(0);
  }
  
  /* Mobile-specific touch areas */
  button,
  .btn,
  a.btn {
    min-height: 44px;
    touch-action: manipulation;
  }
  
  /* Mobile font size adjustments */
  .product-title {
    font-size: var(--font-size-base);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
  /* Ultra-compact hero */
  .hero-search-container .hero-title-enhanced {
    font-size: var(--font-size-2xl);
  }
  
  .hero-search-box {
    padding: var(--spacing-md);
  }
  
  /* Smaller trust metrics */
  .trust-metric-value {
    font-size: var(--font-size-2xl);
  }
  
  /* Compact product cards */
  .product-card-b2b .product-content {
    padding: var(--spacing-md);
  }
  
  /* Smaller filter drawer */
  .filter-drawer-mobile {
    width: 280px;
  }
  
  /* Bottom nav adjustments */
  .bottom-nav-item span {
    display: none;
  }
  
  .bottom-nav-item i {
    font-size: var(--font-size-xl);
  }
}

/* ============================================= */
/* 8. ACCESSIBILITY IMPROVEMENTS                */
/* ============================================= */

/* Focus states for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.touch-friendly-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--text-white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: var(--spacing-md);
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .urgency-indicator {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn,
  .touch-friendly-btn {
    border: 2px solid currentColor;
  }
  
  .product-card-b2b {
    border: 2px solid var(--text-primary);
  }
}

/* ============================================= */
/* 9. LOADING STATES & SKELETON SCREENS        */
/* ============================================= */

/* Skeleton loading animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 0%,
    var(--gray-100) 20%,
    var(--gray-200) 60%,
    var(--gray-200)
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: var(--border-radius-md);
}

.skeleton-text {
  height: 16px;
  margin-bottom: var(--spacing-sm);
  border-radius: var(--border-radius-sm);
}

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: var(--spacing-md);
  border-radius: var(--border-radius-sm);
}

.skeleton-image {
  aspect-ratio: 4/3;
  border-radius: var(--border-radius-md);
}

.skeleton-button {
  height: 44px;
  border-radius: var(--border-radius-md);
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================= */
/* 10. PRINT STYLES                             */
/* ============================================= */

@media print {
  /* Hide non-essential elements */
  .header,
  .footer,
  .bottom-nav-mobile,
  .mobile-sticky-search,
  .filter-drawer-mobile,
  .recently-viewed-bar,
  .comparison-tool,
  .hero-search-container,
  .trust-metrics-bar,
  .testimonial-carousel {
    display: none !important;
  }
  
  /* Optimize for print */
  .product-card-b2b {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  
  /* Ensure text is black */
  body,
  .product-title,
  .product-price {
    color: #000 !important;
  }
  
  /* Remove backgrounds */
  * {
    background: transparent !important;
  }
  
  /* Show links */
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ============================================= */
/* 11. USER MANAGEMENT INTERFACE ENHANCEMENTS   */
/* ============================================= */

/* User Management Dashboard Base Styles */
.user-management-enhanced {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

/* Enhanced Analytics Cards with Micro-animations */
.analytics-card {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1058ff, #00bcd4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.analytics-card:hover::before {
  transform: scaleX(1);
}

.analytics-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(16, 88, 255, 0.15);
}

.analytics-card .icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.analytics-card:hover .icon-wrapper {
  transform: rotate(5deg) scale(1.1);
}

.analytics-card .metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}

.analytics-card .growth-badge {
  animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Live Activity Indicator */
.live-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Advanced Search with Autocomplete */
.advanced-search {
  position: relative;
}

.search-input {
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  box-shadow: 0 0 0 4px rgba(16, 88, 255, 0.1);
  transform: translateY(-1px);
}

.search-history {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease;
}

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

.history-item {
  transition: all 0.2s ease;
  cursor: pointer;
}

.history-item:hover {
  background: #f3f4f6;
  padding-left: 20px;
}

/* Filter Panel Enhancements */
.filter-panel {
  animation: fadeIn 0.5s ease;
}

.filter-select {
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-select:hover {
  border-color: #1058ff;
}

.filter-select:focus {
  border-color: #1058ff;
  box-shadow: 0 0 0 3px rgba(16, 88, 255, 0.1);
}

.filter-badge {
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Active Filter Tags */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #1058ff;
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  animation: slideInLeft 0.3s ease;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  background: #0d47d9;
  transform: translateY(-2px);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bulk Actions Floating Bar */
.bulk-actions-bar {
  background: linear-gradient(135deg, #1058ff 0%, #0d47d9 100%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 88, 255, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bulk-btn {
  transition: all 0.2s ease;
}

.bulk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Table with Hover States */
.users-table {
  border-collapse: separate;
  border-spacing: 0;
}

.users-table thead th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  color: #6b7280;
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 10;
}

.users-table tbody tr {
  transition: all 0.2s ease;
  position: relative;
}

.users-table tbody tr:hover {
  background: #f9fafb;
  /* Removed transform to prevent jumping */
  /* transform: translateX(4px); */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Removed ::before pseudo-element that was causing layout issues */
/*
.users-table tbody tr:hover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #1058ff;
}
*/

/* Medimarket Brand Color Classes */
.medimarket-primary {
  color: #1058ff;
}

.medimarket-primary-bg {
  background-color: #1058ff;
}

.medimarket-primary-bg-light {
  background-color: rgba(16, 88, 255, 0.1);
}

.medimarket-secondary {
  color: #01315E;
}

.medimarket-secondary-bg {
  background-color: #01315E;
}

.medimarket-accent {
  color: #0d9488;
}

.medimarket-accent-bg {
  background-color: #0d9488;
}

/* User Avatar Initial Badge */
.user-avatar-initials {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1058ff 0%, #0d9488 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid #f3f4f6;
}

/* Role Badges - Medimarket Style */
.role-badge-admin {
  background-color: rgba(16, 88, 255, 0.1);
  color: #01315E;
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.role-badge-moderator {
  background-color: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.role-badge-customer {
  background-color: #f3f4f6;
  color: #374151;
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Growth Badge - Medimarket Style */
.growth-badge-medimarket {
  background-color: rgba(16, 88, 255, 0.1);
  color: #1058ff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* Icon Wrapper - Medimarket Style */
.icon-wrapper-medimarket {
  background-color: rgba(16, 88, 255, 0.05);
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.icon-wrapper-medimarket svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #1058ff;
}

/* User Status Badges with Icons */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.status-badge:hover {
  transform: scale(1.05);
}

/* Action Buttons with Tooltips */
.action-btn {
  position: relative;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.action-btn:hover {
  background: #eff6ff;
  transform: scale(1.1);
}

.action-btn:hover::after {
  content: attr(title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

/* Action Dropdown Menu */
.action-dropdown {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: fadeInScale 0.2s ease;
  min-width: 180px;
}

.dropdown-item {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-item:hover {
  background: #f3f4f6;
  padding-left: 20px;
}

.dropdown-item:hover svg {
  transform: translateX(2px);
}

/* Activity Timeline Enhancements */
.activity-timeline {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-height: 600px;
  transition: all 0.3s ease;
}

.activity-timeline.collapsed {
  max-height: 60px;
  overflow: hidden;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  animation: fadeInRight 0.5s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: -20px;
  width: 2px;
  background: #e5e7eb;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.2) rotate(10deg);
}

/* Security Alerts with Animations */
.security-alerts .alert-item {
  animation: shake 2s ease infinite;
  animation-delay: 5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  2% { transform: translateX(-2px); }
  4% { transform: translateX(2px); }
  6% { transform: translateX(-2px); }
  8% { transform: translateX(0); }
}

/* View Mode Switcher */
.view-mode-switcher {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.view-mode-btn {
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.view-mode-btn.active {
  background: white;
  color: #1058ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-mode-btn:hover:not(.active) {
  color: #1058ff;
}

/* Card View Layout */
.user-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.user-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.user-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1058ff, #00bcd4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.user-card:hover::before {
  transform: scaleX(1);
}

.user-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.user-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.user-card-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.user-card-info p {
  font-size: 14px;
  color: #6b7280;
}

.user-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.user-card-stat {
  text-align: center;
}

.user-card-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.user-card-stat-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.user-card-actions button {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.user-card-actions button:hover {
  background: #1058ff;
  color: white;
  border-color: #1058ff;
  transform: translateY(-2px);
}

/* Kanban View Layout */
.kanban-board {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  overflow-x: auto;
}

.kanban-column {
  min-width: 320px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.kanban-column-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kanban-column-count {
  background: #1058ff;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kanban-card {
  background: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  cursor: move;
  transition: all 0.2s ease;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kanban-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

/* Inline Editing Styles */
.editable-field {
  position: relative;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.editable-field:hover {
  background: #f3f4f6;
  cursor: text;
}

.editable-field:hover::after {
  content: '✏️';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.6;
}

.editable-field.editing {
  background: white;
  border: 2px solid #1058ff;
  padding: 4px 8px;
}

.editable-field input {
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  width: 100%;
}

/* Loading Skeletons for User Management */
.user-skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 20%,
    #f0f0f0 60%,
    #f0f0f0
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 8px;
}

.user-skeleton-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.user-skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  flex-shrink: 0;
}

.user-skeleton-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-skeleton-line {
  height: 12px;
  background: #e0e0e0;
  border-radius: 4px;
}

.user-skeleton-line.short {
  width: 60%;
}

/* Saved Search Dropdown */
.saved-searches-dropdown {
  position: relative;
  display: inline-block;
}

.saved-searches-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.saved-searches-btn:hover {
  border-color: #1058ff;
  color: #1058ff;
}

.saved-searches-list {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-width: 240px;
  display: none;
  z-index: 100;
}

.saved-searches-list.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.saved-search-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saved-search-item:hover {
  background: #f3f4f6;
}

.saved-search-name {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}

.saved-search-date {
  font-size: 12px;
  color: #6b7280;
}

.saved-search-delete {
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #ef4444;
  cursor: pointer;
}

.saved-search-item:hover .saved-search-delete {
  opacity: 1;
}

/* Column Visibility Dropdown */
.column-visibility-dropdown {
  position: relative;
  display: inline-block;
}

.column-visibility-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.column-visibility-list {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  display: none;
  z-index: 100;
  padding: 8px;
}

.column-visibility-list.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.column-visibility-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.column-visibility-item:hover {
  background: #f3f4f6;
}

.column-visibility-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #1058ff;
}

.column-visibility-label {
  font-size: 14px;
  color: #1f2937;
  user-select: none;
}

/* Mobile Responsive Card Layout */
@media (max-width: 768px) {
  .user-management-enhanced {
    padding: 16px 8px;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .analytics-card {
    padding: 16px;
  }
  
  .users-table-wrapper {
    display: none;
  }
  
  .user-cards-mobile {
    display: block;
  }
  
  .user-card-mobile {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
  }
  
  .user-card-mobile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .user-card-mobile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
  }
  
  .user-card-mobile-info {
    flex: 1;
  }
  
  .user-card-mobile-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
  }
  
  .user-card-mobile-email {
    font-size: 13px;
    color: #6b7280;
  }
  
  .user-card-mobile-status {
    position: absolute;
    top: 16px;
    right: 16px;
  }
  
  .user-card-mobile-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .user-card-mobile-detail {
    display: flex;
    flex-direction: column;
  }
  
  .user-card-mobile-detail-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }
  
  .user-card-mobile-detail-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
  }
  
  .user-card-mobile-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }
  
  .user-card-mobile-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
    transition: all 0.2s ease;
  }
  
  .user-card-mobile-actions button:active {
    transform: scale(0.95);
    background: #1058ff;
    color: white;
  }
  
  /* Mobile Swipe Actions */
  .user-card-mobile-swipe {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
  }
  
  .user-card-mobile-swipe-content {
    transition: transform 0.3s ease;
  }
  
  .user-card-mobile-swipe-actions {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 200px;
    display: flex;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .user-card-mobile-swipe.swiped .user-card-mobile-swipe-content {
    transform: translateX(-200px);
  }
  
  .user-card-mobile-swipe.swiped .user-card-mobile-swipe-actions {
    transform: translateX(0);
  }
  
  .user-card-mobile-swipe-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 14px;
  }
  
  .user-card-mobile-swipe-action.edit {
    background: #3b82f6;
  }
  
  .user-card-mobile-swipe-action.delete {
    background: #ef4444;
  }
  
  /* Mobile Filter Bottom Sheet */
  .filter-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .filter-bottom-sheet.active {
    transform: translateY(0);
  }
  
  .filter-bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 12px auto;
  }
  
  .filter-bottom-sheet-content {
    padding: 20px;
  }
  
  /* Mobile Search Bar */
  .mobile-search-bar {
    position: sticky;
    top: 0;
    background: white;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }
  
  .mobile-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: #f9fafb;
  }
  
  .mobile-search-input:focus {
    background: white;
    border-color: #1058ff;
    outline: none;
  }
  
  /* Mobile Quick Actions */
  .mobile-quick-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
  }
  
  .mobile-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1058ff;
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(16, 88, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .mobile-fab:active {
    transform: scale(0.9);
  }
  
  .mobile-fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none;
  }
  
  .mobile-fab-menu.active {
    display: block;
  }
  
  .mobile-fab-menu-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeInScale 0.3s ease;
  }
  
  .mobile-fab-menu-item:active {
    transform: scale(0.9);
    background: #1058ff;
    color: white;
  }
}

/* Accessibility Enhancements */
.user-management-enhanced *:focus-visible {
  outline: 2px solid #1058ff;
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .analytics-card,
  .user-card,
  .kanban-card {
    border: 2px solid currentColor;
  }
  
  .status-badge {
    border: 1px solid currentColor;
  }
  
  .action-btn:focus {
    outline: 3px solid currentColor;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .analytics-card,
  .user-card,
  .timeline-item,
  .filter-tag,
  .bulk-actions-bar {
    animation: none !important;
    transition: none !important;
  }
  
  .live-dot {
    animation: none;
  }
}

/* Keyboard Navigation Indicators */
.keyboard-nav .focusable:focus {
  outline: 3px solid #1058ff;
  outline-offset: 2px;
}

.keyboard-shortcuts-hint {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  display: none;
  z-index: 1000;
}

.keyboard-shortcuts-hint.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Virtual Scrolling Container */
.virtual-scroll-container {
  height: 600px;
  overflow-y: auto;
  position: relative;
}

.virtual-scroll-viewport {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.virtual-scroll-spacer {
  position: relative;
  width: 100%;
}

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimistic UI Updates */
.optimistic-update {
  position: relative;
  opacity: 0.7;
}

.optimistic-update::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(16, 88, 255, 0.1) 50%,
    transparent 100%
  );
  animation: optimisticShimmer 1s infinite;
}

@keyframes optimisticShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Real-time Activity Indicator */
.realtime-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #10b981;
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.realtime-indicator .pulse {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Undo/Redo Notification */
.undo-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  z-index: 1000;
}

.undo-notification button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.undo-notification button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================= */
/* Navbar and Navigation Styles                 */
/* ============================================= */

/* Main navigation link styles */
.nav-link {
  color: var(--brand-secondary, #01315E);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--brand-primary, #1058FF);
}

/* Dropdown menu item styles */
.nav-dropdown-item,
.dropdown-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  color: var(--brand-secondary, #01315E);
  transition: all 0.2s ease;
}

.nav-dropdown-item:hover,
.dropdown-menu-item:hover {
  background-color: var(--brand-primary, #1058FF);
  color: white;
}

/* Active/selected state */
.nav-dropdown-item.active,
.dropdown-menu-item.active {
  background-color: #f3f4f6;
  font-weight: 600;
}

/* Language switcher specific */
.language-switcher .dropdown-item {
  color: var(--brand-secondary, #01315E);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  position: relative;
}

.language-switcher .dropdown-item:hover {
  background-color: var(--brand-primary, #1058FF);
  color: white;
  transform: none;
}

.language-switcher .dropdown-item.active {
  background-color: #f3f4f6;
  font-weight: 600;
}

/* Prevent jumping on hover */
.language-switcher .dropdown-item span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.language-switcher .dropdown-item svg {
  flex-shrink: 0;
}

/* ============================================= */
/* ENHANCED CATEGORY CARDS                      */
/* ============================================= */

/* Category Card Enhanced */
.category-card-enhanced {
  display: block;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden;
}

.category-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(16, 88, 255, 0.15);
  border-color: var(--brand-primary, #1058FF);
}

.category-card-inner {
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.category-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #F7FCFF 0%, #EBF4FF 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-card-enhanced:hover .category-icon-wrapper {
  background: linear-gradient(135deg, #1058FF 0%, #0040CC 100%);
}

.category-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.category-icon-default {
  width: 40px;
  height: 40px;
  color: var(--brand-primary, #1058FF);
  transition: all 0.3s ease;
}

.category-card-enhanced:hover .category-icon-default {
  color: white;
}

.category-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-secondary, #01315E);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.category-card-enhanced:hover .category-title {
  color: var(--brand-primary, #1058FF);
}

.category-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.count-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary, #1058FF);
}

.count-label {
  font-size: 0.875rem;
  color: #6B7280;
}

.category-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--brand-primary, #1058FF);
}

.category-card-enhanced:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================= */
/* PRODUCT BADGE STYLES                         */
/* ============================================= */

/* Premium Badge */
.badge-premium {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
}

/* Reserved Badge */
.badge-reserved {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  text-transform: uppercase;
}

/* Sold Badge */
.badge-sold {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
  text-transform: uppercase;
}

/* Condition Badge */
.badge-condition {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Manufacturer Badge */
.badge-manufacturer {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: #F3F4F6;
  color: #4B5563;
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 1px solid #E5E7EB;
}

/* Location Badge */
.location-badge {
  font-size: 0.75rem;
  color: #374151;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============================================= */
/* END OF MEDIMARKET UX ENHANCEMENTS CSS        */
/* ============================================= */

/* ============================================= */
/* B2B MARKETPLACE CRITICAL COMPONENTS          */
/* ============================================= */

/* KYC/KYB Verification Dashboard Components */
.kyc-verification-wizard {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.kyc-steps-header {
  background: #F9FAFB;
  padding: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
}

.kyc-steps-container {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.kyc-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.kyc-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid #D1D5DB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.kyc-step.active .kyc-step-number {
  background: #1058FF;
  border-color: #1058FF;
  color: white;
}

.kyc-step.completed .kyc-step-number {
  background: #10B981;
  border-color: #10B981;
  color: white;
}

/* Document Upload Status Cards */
.document-upload-card {
  border: 2px dashed #D1D5DB;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
}

.document-upload-card:hover {
  border-color: #1058FF;
  background: rgba(16, 88, 255, 0.02);
}

.document-upload-card.uploaded {
  border-style: solid;
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.05);
  cursor: default;
}

/* Medical Device Compliance Tracker */
.compliance-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}

.compliance-badge.fda {
  background: rgba(16, 88, 255, 0.1);
  color: #1058FF;
}

.compliance-badge.ce {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

/* RFQ System with Bidding Interface */
.rfq-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.rfq-header {
  background: #01315E;
  color: white;
  padding: 1.5rem;
}

/* Vendor Bidding Cards */
.vendor-bid-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.vendor-bid-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: #1058FF;
}

.vendor-bid-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1058FF;
}

/* Advanced Analytics Dashboard */
.analytics-metric-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.analytics-metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #01315E;
  margin: 0.5rem 0;
}

/* Dispute Resolution Center */
.dispute-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.dispute-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 3px solid #D1D5DB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

/* Inventory Management System */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.inventory-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Commission Management Dashboard */
.vendor-tier-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.vendor-tier-card.gold {
  border-top: 4px solid #FFD700;
}

/* Warranty & Service Tracker */
.warranty-status-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.warranty-status-ribbon {
  position: absolute;
  top: 1rem;
  right: -2rem;
  padding: 0.25rem 3rem;
  background: #10B981;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  transform: rotate(45deg);
}


/* Additional B2B Marketplace Critical Styles */

/* Real-time Activity Feed Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.activity-feed-item {
  animation: slideInRight 0.3s ease-out;
}

/* Inventory Stock Level Animations */
@keyframes stockWarning {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.inventory-stock-indicator.low-stock {
  animation: stockWarning 2s infinite;
}

/* Auction Timer Critical State */
.auction-timer-container.critical {
  background: #EF4444;
  animation: pulse 1s infinite;
}

/* Compliance Alert Animations */
@keyframes alertPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.compliance-expiry-alert {
  animation: alertPulse 2s infinite;
}

/* Dispute Chat Real-time Indicator */
.dispute-chat-typing {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: #F9FAFB;
  border-radius: 12px;
}

.dispute-chat-typing-dot {
  width: 8px;
  height: 8px;
  background: #6B7280;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.dispute-chat-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dispute-chat-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Revenue Chart Hover Effects */
.revenue-breakdown-item {
  cursor: pointer;
  transition: all 0.2s ease;
}

.revenue-breakdown-item:hover {
  background: #F9FAFB;
  padding-left: 1rem;
}

/* Commission Tier Hover Animations */
.vendor-tier-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vendor-tier-card:hover .vendor-tier-icon {
  transform: scale(1.2) rotate(10deg);
  transition: transform 0.3s ease;
}

/* Service Timeline Interactive States */
.service-timeline-marker {
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-timeline-marker:hover .service-timeline-marker-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(16, 88, 255, 0.1);
}

/* Batch Tracking Hover Effects */
.batch-tracking-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.batch-tracking-card:hover {
  border-color: #1058FF;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Upload Zone Drag States */
.document-upload-card.dragging,
.dispute-evidence-zone.dragging {
  border-color: #1058FF;
  background: rgba(16, 88, 255, 0.05);
  transform: scale(1.02);
}

/* KYC Step Connector Lines */
.kyc-step-connector {
  position: absolute;
  top: 20px;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #10B981 0%, #10B981 50%, #D1D5DB 50%, #D1D5DB 100%);
  z-index: 1;
}

/* Bid Card Selection State */
.vendor-bid-card.selected {
  border-color: #1058FF;
  border-width: 2px;
  background: rgba(16, 88, 255, 0.02);
}

/* Analytics Metric Trend Indicators */
.analytics-trend-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  margin-right: 4px;
}

.analytics-trend-arrow.up {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #10B981;
}

.analytics-trend-arrow.down {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #EF4444;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
  .inventory-grid {
    grid-template-columns: 1fr;
  }
  
  .kyc-steps-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .vendor-tier-card {
    margin-bottom: 1rem;
  }
  
  .analytics-metric-card {
    margin-bottom: 1rem;
  }
}
