:root {
  /* Paleta de Modo Oscuro Tecnológico - Tonos Negros y Azules Nocturnos */
  --primary-50: #0a0a0a;
  --primary-100: #141414;
  --primary-200: #1f1f1f;
  --primary-300: #292929;
  --primary-400: #333333;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;

  /* Azules Nocturnos Cibernéticos */
  --accent-50: #000000;
  --accent-100: #0a0a0a;
  --accent-200: #1a1a2e;
  --accent-300: #16213e;
  --accent-400: #0f3460;
  --accent-500: #0ea5e9;
  --accent-600: #0284c7;
  --accent-700: #0369a1;
  --accent-800: #075985;
  --accent-900: #0c4a6e;

  /* Grises Oscuros Tecnológicos */
  --gray-50: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Colores de IA en Modo Oscuro */
  --ai-purple: #8b5cf6;
  --ai-blue: #0ea5e9;
  --ai-cyan: #06b6d4;
  --ai-green: #10b981;
  --ai-orange: #f59e0b;
  --ai-red: #ef4444;
  
  /* Neón y efectos brillantes para modo oscuro */
  --neon-purple: #a855f7;
  --neon-blue: #38bdf8;
  --neon-cyan: #22d3ee;
  --neon-pink: #ec4899;
  
  /* Colores de fondo oscuro */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;
  --bg-card: rgba(20, 20, 20, 0.8);
  --bg-glass: rgba(10, 10, 10, 0.6);
  
  /* Bordes y sombras para modo oscuro */
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.2);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);

  /* Sombras modernas */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Bordes modernos */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transiciones suaves */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tema oscuro tecnológico */
body {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--accent-200) 100%);
  color: var(--gray-100);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
  }
}

/* Clases de utilidad */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

/* Botones modernos */
.btn-modern {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.btn-modern:hover {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-modern:active {
  transform: translateY(0);
}

.btn-logout {
  background: linear-gradient(135deg, var(--ai-red) 0%, var(--neon-pink) 100%);
  color: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.5);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm), var(--shadow-glow);
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--neon-pink);
}

.btn-logout:active {
  transform: translateY(0);
}

.navbar .btn-logout {
  margin-left: 0.5rem;
}

/* Cards tecnológicas oscuras */
.card-modern {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-dark);
}

.card-modern:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
}

/* Inputs tecnológicos oscuros */
.form-control-modern {
  width: 100%;
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  background: var(--bg-secondary);
  color: var(--gray-100);
}

.form-control-modern:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), var(--shadow-glow);
  outline: none;
  background: var(--bg-tertiary);
}

/* Navegación tecnológica oscura */
.nav-modern {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.nav-link.active {
  background: var(--gray-800) !important;
}

.nav-link:hover {
  background: var(--gray-800) !important;
}

/* Gradiente hero oscuro */
.hero-gradient {
  background: linear-gradient(135deg, var(--accent-300) 0%, var(--accent-500) 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(56, 189, 248, 0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

/* Animación de carga oscura */
.loading-shimmer {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--accent-200) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .container-modern {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .card-modern {
    margin-bottom: 1rem;
  }
}

/* Efectos de neón adicionales */
.neon-glow {
  box-shadow: var(--shadow-glow);
}

.neon-text {
  text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
}

/* ===== HOME PAGE STYLES ===== */
.home-container {
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
  padding: 0 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  width: fit-content;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-50);
  margin: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin: 0;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-600);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-300);
  font-weight: 500;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  width: 100%;
  max-width: 400px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.card-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
}

.card-dot:nth-child(1) { background: #ff5f57; }
.card-dot:nth-child(2) { background: #ffbd2e; }
.card-dot:nth-child(3) { background: #28ca42; }

.data-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.data-line:last-child {
  border-bottom: none;
}

.data-label {
  font-weight: 600;
  color: var(--gray-50);
}

.data-value {
  color: var(--gray-50);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.data-value.success {
  background: #dcfce7;
  color: #166534;
}

.data-value.warning {
  background: #fef3c7;
  color: #92400e;
}

/* Features Section */
.features-section {
  margin-bottom: 6rem;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-50);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

.feature-text {
  color: var(--gray-50);
  font-size: 1.5rem;
  font-weight: bold;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 1rem 0;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--primary-50);
  color: var(--gray-50);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Company Section */
.about-company-section {
  padding: 0 2rem;
}

.company-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.company-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-50);
  margin-bottom: 1.5rem;
}

.company-info p {
  font-size: 1.125rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.company-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.company-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.company-feature .feature-icon {
  font-size: 1.5rem;
}

.tech-stack {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border-light);
}

.tech-stack h4 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--gray-100);
  margin-bottom: 1.5rem;
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
}

.tech-text {
  color: var(--gray-100);
  font-size: 1.25rem;
  font-weight: bold;
}

/* ===== PRODUCTS PAGE STYLES ===== */
.products-container {
  padding: 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 2rem;
}

.header-content {
  width: 100%;
  flex: 1;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  width: fit-content;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-100);
  margin: 0 0 1rem 0;
}

.title-highlight {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.page-description {
  width: 100%;
  font-size: 1.125rem;
  color: var(--gray-300);
  line-height: 1.7;
}

.header-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  text-align: center;
  min-width: 150px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-600);
  display: block;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top: 3px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.125rem;
  color: var(--gray-600);
  font-weight: 500;
}

.products-content {
  padding: 0 2rem;
}

/* ===== PRODUCT TABLE STYLES ===== */
.product-table-container {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.table-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-50);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-icon {
  font-size: 1.25rem;
}

.table-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
}

.badge-count {
  font-weight: 800;
}

.header-controls {
  display: flex;
  align-items: center;
}

.page-size-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.control-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  font-size: 0.875rem;
  background: white;
  color: var(--gray-700);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.control-select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  outline: none;
}

.control-text {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Table Filters */
.table-filters {
  padding: 2rem;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}

.filter-grid {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.filter-input {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1rem;
  color: var(--gray-400);
  z-index: 1;
}

.modern-input {
  width: 100%;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: white;
  color: var(--gray-700);
  transition: all var(--transition-fast);
}

.modern-input:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  outline: none;
}

.filter-input .modern-input {
  padding-left: 2.5rem;
}

.price-range, .date-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-input, .date-input {
  flex: 1;
}

.range-separator {
  color: var(--gray-400);
  font-weight: 600;
}

.reset-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reset-button:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

.button-icon {
  font-size: 1rem;
}

/* Modern Table */
.table-content {
  background: white;
}

.table-wrapper {
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.modern-table thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.modern-table th {
  padding: 1.5rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sortable-header {
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.sortable-header:hover {
  color: var(--primary-600);
}

.sort-icon {
  font-size: 0.75rem;
  opacity: 0.5;
}

.modern-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition-fast);
}

.modern-table tbody tr:hover {
  background: var(--primary-50);
}

.modern-table td {
  padding: 1.5rem 1rem;
  vertical-align: middle;
}

.product-name {
  min-width: 250px;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-icon {
  font-size: 1.5rem;
  background: var(--primary-100);
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-title {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1rem;
}

.product-subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.price-cell {
  text-align: right;
  min-width: 120px;
}

.price-value {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1rem;
  display: block;
}

.price-value.primary {
  color: #96ffb0;
}

.price-difference {
  margin-top: 0.25rem;
}

.profit-margin {
  font-size: 0.75rem;
  color: #16a34a;
  background: #dcfce7;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
}

.date-cell {
  min-width: 150px;
}

.date-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.date-value {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.875rem;
}

.date-days {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.action-cell {
  text-align: center;
  min-width: 100px;
}

.action-button {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin: 0 0.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-button:hover {
  background: var(--primary-100);
  border-color: var(--primary-200);
  transform: translateY(-1px);
}

.action-icon {
  font-size: 1rem;
}

/* Empty State */
.empty-state {
  background: var(--gray-50);
}

.empty-cell {
  padding: 4rem 2rem !important;
  text-align: center;
}

.empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-700);
  margin: 0;
}

.empty-description {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin: 0;
}

/* Table Footer */
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.pagination-info {
  display: flex;
  align-items: center;
}

.pagination-text {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-button:hover:not(.disabled) {
  background: var(--primary-100);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

.pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-icon {
  font-size: 1rem;
}

.pagination-numbers {
  display: flex;
  gap: 0.25rem;
}

.pagination-number {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 36px;
  text-align: center;
}

.pagination-number:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.pagination-number.active {
  background: var(--primary-500);
  border-color: var(--primary-600);
  color: white;
}

.product-table-container {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border-light);
}

.table-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.table-badge {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.table-content,
.modern-table {
  background: var(--bg-secondary);
}

.modern-table thead {
  background: var(--bg-tertiary);
  border-bottom: 2px solid var(--border-light);
}

.modern-table th {
  color: var(--gray-100);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.sortable-header:hover {
  color: var(--neon-blue);
}

.modern-table tbody tr {
  border-bottom: 1px solid var(--border-light);
}

.modern-table tbody tr:hover {
  background: var(--bg-tertiary);
}

.product-icon {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
}

.product-title {
  color: var(--gray-100);
}

.product-subtitle {
  color: var(--gray-400);
}

.price-value {
  color: var(--gray-100);
}

.date-value {
  color: var(--gray-100);
}

.date-days {
  color: var(--gray-400);
}

.action-button {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--gray-100);
}

.action-button:hover {
  background: var(--bg-secondary);
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-glow);
}

.empty-state {
  background: var(--bg-secondary);
}

.empty-title {
  color: var(--gray-100);
}

.empty-description {
  color: var(--gray-400);
}

.table-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.pagination-text {
  color: var(--gray-300);
}

.pagination-button {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  color: var(--gray-100);
}

.pagination-button:hover:not(.disabled) {
  background: var(--bg-secondary);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: var(--shadow-glow);
}

.pagination-number {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  color: var(--gray-100);
}

.pagination-number:hover {
  background: var(--bg-secondary);
  border-color: var(--neon-blue);
}

.table-filters {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.filter-label {
  color: var(--gray-200);
}

.modern-input {
  border: 2px solid var(--border-dark);
  background: var(--bg-secondary);
  color: var(--gray-100);
}

.modern-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), var(--shadow-glow);
}

.control-select {
  border: 2px solid var(--border-dark);
  background: var(--bg-secondary);
  color: var(--gray-100);
}

.control-select:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), var(--shadow-glow);
}

.reset-button {
  background: var(--bg-tertiary);
  color: var(--gray-100);
  border: 2px solid var(--border-light);
}

.reset-button:hover {
  background: var(--bg-secondary);
  border-color: var(--neon-blue);
  box-shadow: var(--shadow-glow);
}

.action-header { text-align: center; color: var(--gray-200); }

/* ===== AI PAGE STYLES ===== */
.ai-container {
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.ai-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.header-content {
  flex: 1;
}

.ai-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
}

/* AI Features Grid */
.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.ai-feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.feature-description {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.875rem;
  margin: 0;
}

.feature-status {
  margin-top: auto;
}

.status-badge {
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.ready {
  background: #dcfce7;
  color: #166534;
}

.status-badge.processing {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.active {
  background: #dbeafe;
  color: #1e40af;
}

/* AI Demo Section */
.ai-demo-section {
  padding: 0 2rem;
  margin-bottom: 4rem;
}

.demo-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.demo-header {
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
}

.demo-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.demo-header p {
  opacity: 0.9;
  margin: 0;
  font-size: 1rem;
}

.demo-content {
  padding: 3rem 2rem;
}

.demo-placeholder {
  text-align: center;
  padding: 2rem;
}

.placeholder-icon {
  color: #a6a6a6;
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.demo-placeholder h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-50);
  margin: 0 0 1rem 0;
}

.demo-placeholder p {
  color: var(--gray-600);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* AI Metrics */
.ai-metrics {
  padding: 0 2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.metric-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.metric-icon {
  color: var(--primary-600);
  font-size: 2rem;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-600);
  display: block;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .page-header {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .company-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .ai-header {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 992px) {
  .ms-3 {
    margin-left: 0 !important;
  }

  .navbar .btn-logout {
    width: 100%;
    margin: 0.5rem 0;
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .home-container,
  .products-container,
  .ai-container {
    padding: 1rem 0;
  }
  
  .hero-section,
  .features-section,
  .about-company-section,
  .page-header,
  .ai-header,
  .ai-features-grid,
  .ai-demo-section,
  .ai-metrics {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .features-grid,
  .ai-features-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-grid {
    grid-template-columns: 1fr;
  }
  
  .table-footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .pagination-nav {
    justify-content: center;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .products-content {
    padding: 0 !important;
  }

  .table-header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .header-info {
    justify-content: center;
  }
  
.header-controls {
  justify-content: center;
}
}

.feature-card,
.company-feature,
.floating-card,
.status-indicator,
.ai-feature-card,
.demo-card,
.metric-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  color: var(--gray-100);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-card h3,
.company-feature h3,
.ai-feature-card .feature-header h3,
.demo-card h3 {
  color: var(--gray-100);
}

.feature-card p,
.company-feature p,
.ai-feature-card .feature-description,
.demo-card p {
  color: var(--gray-300);
}

.feature-card i,
.company-feature .feature-icon,
.ai-feature-card .feature-icon,
.demo-card .placeholder-icon,
.metric-card .metric-icon {
  color: var(--gray-50);
}

.status-indicator {
  background: var(--bg-tertiary);
}

.status-text {
  color: var(--gray-200);
}

.floating-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.metric-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.metric-card .metric-value {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gray-50);
}

.metric-card .metric-label {
  font-size: 0.875rem;
  color: var(--gray-300);
}