:root {
  --bg-primary: #080b11;
  --bg-card: rgba(15, 21, 35, 0.88);
  --bg-card-hover: rgba(22, 30, 49, 0.95);
  --bg-input: #0e1526;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);
  --primary: #0284c7;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  --primary-hover: #2563eb;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 4px 18px -2px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 20px 40px -10px rgba(14, 165, 233, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 60px;
}

/* Unified Ecosystem Header Styles */
.app-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 21, 35, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

html.light .app-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 240, 255, 0.15));
}

.logo-dark { display: block; }
.logo-light { display: none; }
html.light .logo-dark { display: none; }
html.light .logo-light { display: block; }

.brand-slash {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
}

html.light .brand-slash {
  color: #cbd5e1;
}

.brand-slug {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.2px;
}

html.light .brand-slug {
  color: #0f172a;
}

.badge-module {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .header-nav {
    display: none;
  }
}

.header-nav-link {
  color: #cbd5e1;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}

.header-nav-link:hover {
  color: #38bdf8;
}

html.light .header-nav-link {
  color: #334155;
}

html.light .header-nav-link:hover {
  color: #0284c7;
}

/* Cases Dropdown Component */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cases-badge {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.3px;
}

.chevron-icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease, color 0.2s ease;
  color: #64748b;
}

.nav-dropdown-wrapper:hover .chevron-icon {
  transform: rotate(180deg);
  color: #38bdf8;
}

.dropdown-menu-card {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 10px;
  width: 350px;
  background: rgba(12, 16, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

@media (min-width: 1081px) {
  .nav-dropdown-wrapper:hover .dropdown-menu-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

.dropdown-menu-card.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

html.light .dropdown-menu-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e2e8f0;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

html.light .dropdown-item:hover {
  background: #f1f5f9;
}

.dropdown-item.active-current {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.item-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.amber-box { background: rgba(245, 158, 11, 0.12); }
.sky-box { background: rgba(14, 165, 233, 0.12); }
.emerald-box { background: rgba(16, 185, 129, 0.12); }
.indigo-box { background: rgba(99, 102, 241, 0.12); }

.item-content {
  flex: 1;
  min-width: 0;
}

.item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.item-title {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.light .item-title {
  color: #0f172a;
}

.item-desc {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.light .item-desc {
  color: #64748b;
}

.item-tag {
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.tag-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-slate { background: rgba(255, 255, 255, 0.08); color: #cbd5e1; }
.tag-indigo { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }

.dropdown-footer {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: right;
  padding-right: 4px;
}

html.light .dropdown-footer {
  border-color: #f1f5f9;
}

.dropdown-all-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
}

.dropdown-all-link:hover {
  text-decoration: underline;
}

/* Telegram Nav Button */
.telegram-nav-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.telegram-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

@media (max-width: 1240px) {
  .telegram-nav-btn {
    display: none;
  }
}

html.light .telegram-nav-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.tg-icon {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

/* Primary CTA Button */
.header-cta-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  color: #ffffff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-cta-btn:hover {
  box-shadow: 0 5px 18px rgba(2, 132, 199, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .header-cta-btn {
    display: none;
  }
}

.arrow-icon {
  width: 13px;
  height: 13px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1080px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
}

html.light .mobile-menu-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.hamburger-icon, .close-icon {
  width: 18px;
  height: 18px;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 17, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}

.mobile-drawer.show {
  display: block;
}

html.light .mobile-drawer {
  background: #ffffff;
  border-color: #e2e8f0;
}

.mobile-drawer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.mobile-group-title {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mobile-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  text-decoration: none;
  padding: 6px 0;
  display: flex;
  align-items: center;
}

html.light .mobile-nav-link {
  color: #0f172a;
}

.mobile-nav-link.flex-between {
  justify-content: space-between;
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.light .mobile-drawer-footer {
  border-color: #e2e8f0;
}

.mobile-tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

html.light .mobile-tg-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.header-server-btn {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-server-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1080px) {
  .header-server-btn {
    display: none;
  }
}

html.light .header-server-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

html.light .header-server-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

@media (max-width: 640px) {
  .lang-switch-group {
    display: none;
  }
  .badge-module {
    display: none;
  }
}

.lang-switch-group {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}

html.light .lang-switch-group {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.lang-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  transition: all 0.2s ease;
}

html.light .lang-btn {
  color: #64748b;
}

.lang-btn:hover {
  color: #ffffff;
}

html.light .lang-btn:hover {
  color: #0f172a;
}

.lang-btn.active {
  background: #0284c7;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.theme-toggle-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

html.light .theme-toggle-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

html.light .theme-toggle-btn:hover {
  color: #0f172a;
  border-color: #94a3b8;
}

html.light .theme-toggle-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

.theme-toggle-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: scale(1.05);
}

.theme-icon {
  width: 16px;
  height: 16px;
}

.sun-icon {
  display: block;
  color: #fbbf24;
}

.moon-icon {
  display: none;
  color: #334155;
}

html.light .sun-icon {
  display: none;
}

html.light .moon-icon {
  display: block;
}

/* Light Theme Component Variables & Adjustments */
html.light {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: rgba(2, 132, 199, 0.4);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
}

html.light body {
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  color: #0f172a;
}

html.light .card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

html.light textarea, html.light input[type="text"], html.light input[type="number"] {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

html.light .industry-selector-bar {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html.light .industry-btn {
  background: transparent !important;
  color: #64748b !important;
  border-color: transparent !important;
}

html.light .industry-btn:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

html.light .industry-btn.active {
  background: #ffffff !important;
  color: #0284c7 !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

html.light .pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

html.light .pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html.light .btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

html.light .btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html.light .data-table th {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

html.light .data-table td {
  border-color: #f1f5f9;
  color: #0f172a;
}

html.light .data-table tr:hover {
  background: #f8fafc;
}

html.light .unified-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

html.light .metric-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html.light .metric-value {
  color: #0f172a;
}

html.light .tab-btn {
  color: #64748b;
  border-color: transparent;
}

html.light .tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

html.light .dropzone {
  background: #f8fafc;
  border-color: #cbd5e1;
}

html.light .modal-card {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

html.light .modal-search-bar input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

html.light .filter-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

html.light .product-picker-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html.light .product-picker-item:hover {
  background: #f1f5f9;
}

.main-container {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.sample-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sample-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.pill {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pill:hover {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-1px);
}

textarea {
  width: 100%;
  min-height: 110px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  padding: 14px;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-input);
  transition: all 0.2s;
}

.dropzone:hover {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.08);
}

.dropzone-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.dropzone-title {
  font-weight: 600;
  font-size: 15px;
}

.dropzone-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.selected-file-name {
  margin-top: 10px;
  font-weight: 700;
  color: #38bdf8;
  font-size: 13px;
}

.options-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  width: 17px;
  height: 17px;
  accent-color: #0284c7;
}

.customer-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.customer-input-wrap input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.customer-input-wrap input:focus {
  outline: none;
  border-color: #38bdf8;
}

.action-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.btn {
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #1e293b;
}

.btn-sm {
  font-size: 12px;
  padding: 6px 12px;
}

.btn-lg {
  font-size: 15px;
  padding: 12px 24px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.error-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--accent-danger);
  color: #fca5a5;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
}

.results-section {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 24px;
}

.proposal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.quote-number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.quote-date {
  font-size: 12.5px;
  color: var(--text-muted);
}

.stock-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.stock-badge.fully_available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
  border: 1px solid var(--accent-success);
}

.stock-badge.partially_available {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-warning);
  border: 1px solid var(--accent-warning);
}

.stock-badge.out_of_stock {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
  border: 1px solid var(--accent-danger);
}

.summary-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.metric-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.metric-card.highlight {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
}

.metric-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 20px;
  font-weight: 800;
  margin-top: 6px;
}

.metric-value .unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.metric-value.total {
  color: var(--primary);
}

.manager-warning {
  margin-top: 18px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--accent-warning);
  color: #fcd34d;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.count-pill {
  font-size: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--text-muted);
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-input);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tr:hover {
  background: var(--bg-card-hover);
}

.prod-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.prod-sku {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.confidence-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.confidence-high { background: rgba(16, 185, 129, 0.2); color: var(--accent-success); }
.confidence-mid { background: rgba(245, 158, 11, 0.2); color: var(--accent-warning); }
.confidence-low { background: rgba(239, 68, 68, 0.2); color: var(--accent-danger); }

.box-pill {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
}

.overage-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.note-cell {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 400px;
}

.export-card {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Vertical Cards View Styles - Optimized for natural downward scrolling */
.view-switch-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.view-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.view-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.view-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s, border-color 0.15s;
}

.item-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.item-card-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 240px;
}

.item-card-main-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.item-card-sub-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.item-card-price-badge {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.item-card-sum {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.item-card-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  background: rgba(11, 15, 25, 0.7);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-grid-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-grid-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.metric-grid-val {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.item-card-footer {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-camera-row {
  margin-bottom: 12px;
  width: 100%;
}

.btn-camera {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-camera:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.logistics-card {
  border-left: 4px solid #10b981;
}

.logistics-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.logistics-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logistics-vehicle-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.logistics-weight-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
}

.logistics-note {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* Source Price File Badge */
.source-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.3);
  font-family: 'JetBrains Mono', monospace;
}

.candidates-box {
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.candidates-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.candidate-item-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.candidate-item-btn:hover {
  background: rgba(2, 132, 199, 0.25);
  border-color: var(--primary);
  transform: translateX(2px);
}

.btn-manual-pick {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-manual-pick:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(2, 132, 199, 0.1);
}

/* Modal Picker */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-search-bar {
  padding: 16px 24px 8px 24px;
  position: relative;
}

.modal-search-bar input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 12px 14px 12px 38px;
  font-size: 14px;
  outline: none;
}

.modal-search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.modal-search-bar .search-icon {
  position: absolute;
  left: 36px;
  top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.modal-filter-pills {
  display: flex;
  gap: 8px;
  padding: 8px 24px 14px 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-color);
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.modal-results-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  cursor: pointer;
}

.modal-product-card:hover {
  background: rgba(2, 132, 199, 0.12);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.modal-prod-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-prod-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-prod-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-prod-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-price-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

/* Side-by-Side Image Preview & Verification */
.image-preview-card {
  margin-bottom: 20px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.7);
}

.image-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.image-preview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #38bdf8;
}

.image-preview-controls {
  display: flex;
  gap: 8px;
}

.image-preview-container {
  max-height: 420px;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: #020617;
  border: 1px solid var(--border-color);
  text-align: center;
  padding: 10px;
  transition: max-height 0.3s ease;
}

.image-preview-container.zoomed {
  max-height: 85vh;
}

.source-doc-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.image-preview-container.zoomed .source-doc-img {
  max-width: none;
  width: auto;
  cursor: zoom-out;
}

/* Manual price & delete box */
.manual-price-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
}

.manual-price-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.manual-price-input {
  width: 130px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #ef4444;
  color: white;
}

.btn-warning-action {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-warning-action:hover {
  background: #f59e0b;
  color: white;
}

.unmatched-card-border {
  border-left: 4px solid #ef4444 !important;
}

@media print {
  .app-header, .input-card, .export-card, .sample-pills, .view-switch-bar, .modal-overlay, .image-preview-card { display: none !important; }
  body { background: white !important; color: black !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; }
}

/* Industry Selector Bar */
.industry-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.4);
  overflow-x: auto;
  scrollbar-width: none;
}

.industry-selector-bar::-webkit-scrollbar {
  display: none;
}

.industry-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.industry-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.industry-btn.active {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 12px -2px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.industry-badge-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.45);
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}

html.light .industry-badge-info {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}



/* ============================================================ */
/* FLOWENGINE ENTERPRISE THEME HARMONIZATION LAYER             */
/* ============================================================ */

/* Light Theme Component Overrides */
html.light body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html.light .item-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05) !important;
}

html.light .item-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.1) !important;
}

html.light .item-card-main-title {
  color: #0f172a !important;
}

html.light .item-card-metrics-grid {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

html.light .metric-grid-title {
  color: #64748b !important;
}

html.light .metric-grid-val {
  color: #0f172a !important;
}

html.light .item-card-footer {
  border-top: 1px solid #f1f5f9 !important;
  color: #64748b !important;
}

html.light .manual-price-box {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  border-radius: 12px !important;
  color: #92400e !important;
}

html.light .manual-price-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .candidates-box {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  border-radius: 12px !important;
}

html.light .candidate-item-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .candidate-item-btn:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

html.light .btn-manual-pick {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  border-radius: 8px !important;
}

html.light .btn-manual-pick:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light .source-file-badge {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
}

html.light .confidence-tag.confidence-high {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}

html.light .confidence-tag.confidence-mid {
  background: #fef9c3 !important;
  color: #854d0e !important;
  border: 1px solid #fef08a !important;
}

html.light .confidence-tag.confidence-low {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

/* Dark Theme Adjustments */
html.dark body {
  background-color: #080b11 !important;
  color: #f8fafc !important;
}

html.dark .item-card {
  background: rgba(12, 16, 26, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
}

html.dark .item-card-metrics-grid {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
}

html.dark .candidate-item-btn {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

html.dark .candidate-item-btn:hover {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}
