.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #d1d5db;
}

.theme-toggle:hover {
  background-color: #374151;
  color: #ffffff;
}

.theme-toggle svg {
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: scale(1.1);
}

/* Dark mode styles */
:root.dark-mode .theme-toggle {
  color: #d1d5db;
}

:root.dark-mode .theme-toggle:hover {
  background-color: #4b5563;
  color: #ffffff;
}

/* Light mode styles */
:root.light-mode .theme-toggle {
  color: #6b7280;
}

:root.light-mode .theme-toggle:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}
/* NavDropdown.css */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-dropdown .nav-link:hover,
.nav-dropdown .nav-link:focus {
  background-color: var(--hover-bg, rgba(0, 0, 0, 0.05));
  outline: none;
}

.nav-dropdown .nav-link.active {
  color: var(--hero-from, #667eea);
  font-weight: 600;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
  color: currentColor;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 280px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  margin-top: 0.25rem;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
  display: block;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--hover-bg, rgba(0, 0, 0, 0.05));
  outline: none;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown-item-name {
  font-weight: 500;
  color: var(--text-primary, #1e293b);
  font-size: 0.875rem;
}

.dropdown-item-description {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.4;
}

/* Dark mode support */
:root.dark-mode .dropdown-menu {
  background: var(--card-bg, #1e293b);
  border-color: var(--border-color, #334155);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);
}

:root.dark-mode .nav-dropdown .nav-link:hover,
:root.dark-mode .nav-dropdown .nav-link:focus {
  background-color: var(--hover-bg, rgba(255, 255, 255, 0.1));
}

:root.dark-mode .dropdown-item:hover,
:root.dark-mode .dropdown-item:focus {
  background-color: var(--hover-bg, rgba(255, 255, 255, 0.1));
}

:root.dark-mode .dropdown-item-name {
  color: var(--text-primary, #f1f5f9);
}

:root.dark-mode .dropdown-item-description {
  color: var(--text-secondary, #94a3b8);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    min-width: auto;
    width: 100%;
    margin-top: 0.5rem;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
  }

  .dropdown-menu.open {
    transform: none;
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
    margin-left: 1rem;
    border-left: 2px solid var(--border-color, #e2e8f0);
  }
}.header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  width: 100%;
  background-color: var(--bg-primary, #ffffff);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 110;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: scale(1.1);
}

.logo-text {
  white-space: nowrap;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 1;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 1;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
  align-items: center;
}

.nav-links > li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-link {
  background: none;
  border: none;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-secondary, #6b7280);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--text-primary, #1f2937);
  background-color: var(--bg-hover, #f3f4f6);
}

.nav-link.active {
  color: var(--primary-color, #3b82f6);
  background-color: var(--primary-bg, #dbeafe);
  font-weight: 600;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 110;
}

.mobile-menu-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-button:hover {
  background-color: var(--bg-hover, #f3f4f6);
}

.mobile-menu-button:focus {
  outline: 2px solid var(--primary-color, #3b82f6);
  outline-offset: 2px;
}

/* Hamburger Icon */
.hamburger {
  display: flex;
  flex-direction: column;
  width: 28px;
  height: 22px;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-primary, #1f2937);
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary, #ffffff);
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding-top: 80px;
  padding-bottom: 2rem;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  width: 100%;
  max-width: 500px;
}

.mobile-nav-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary, #1f2937);
}

.mobile-nav-link:hover {
  color: var(--primary-color, #3b82f6);
  background-color: var(--primary-bg, #dbeafe);
}

.mobile-nav-link.active {
  color: var(--primary-color, #3b82f6);
  background-color: var(--primary-bg, #dbeafe);
}

/* Dark mode styles */
:root.dark-mode .header {
  background-color: #1e293b;
  border-bottom: 1px solid #374151;
}

:root.dark-mode .logo {
  color: #ffffff;
}

:root.dark-mode .logo:hover {
  color: #60a5fa;
}

:root.dark-mode .nav-link {
  color: #d1d5db;
}

:root.dark-mode .nav-link:hover {
  color: #ffffff;
  background-color: #374151;
}

:root.dark-mode .nav-link.active {
  color: #60a5fa;
  background-color: #1e3a8a;
}

:root.dark-mode .mobile-menu-button:hover {
  background-color: #374151;
}

:root.dark-mode .hamburger span {
  background-color: #ffffff;
}

:root.dark-mode .mobile-menu-overlay {
  background-color: #1e293b;
}

:root.dark-mode .mobile-nav-link {
  color: #ffffff;
}

:root.dark-mode .mobile-nav-link:hover {
  color: #60a5fa;
  background-color: #1e3a8a;
}

:root.dark-mode .mobile-nav-link.active {
  color: #60a5fa;
  background-color: #1e3a8a;
}

/* Light mode styles */
:root.light-mode .header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:root.light-mode .logo {
  color: #1f2937;
}

:root.light-mode .logo:hover {
  color: #3b82f6;
}

:root.light-mode .nav-link {
  color: #6b7280;
}

:root.light-mode .nav-link:hover {
  color: #1f2937;
  background-color: #f3f4f6;
}

:root.light-mode .nav-link.active {
  color: #3b82f6;
  background-color: #dbeafe;
}

:root.light-mode .mobile-menu-button:hover {
  background-color: #f3f4f6;
}

:root.light-mode .hamburger span {
  background-color: #1f2937;
}

:root.light-mode .mobile-menu-overlay {
  background-color: #ffffff;
}

:root.light-mode .mobile-nav-link {
  color: #1f2937;
}

:root.light-mode .mobile-nav-link:hover {
  color: #3b82f6;
  background-color: #dbeafe;
}

:root.light-mode .mobile-nav-link.active {
  color: #3b82f6;
  background-color: #dbeafe;
}

/* Responsive design */
@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: flex;
  }
}

@media (min-width: 1101px) and (max-width: 1300px) {
  .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem;
  }
  
  .nav-links {
    gap: 0.35rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  .logo {
    font-size: 1.25rem;
    flex-shrink: 1;
    min-width: 0;
  }
  
  .logo-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }
  
  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.75rem;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .logo-icon {
    width: 30px;
    height: 30px;
  }
  
  .mobile-nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }
  
  .mobile-menu-overlay {
    padding-top: 70px;
  }
  
  .mobile-dropdown-items {
    max-height: 300px;
  }
  
  .mobile-dropdown-item-name {
    font-size: 0.95rem;
  }
  
  .mobile-dropdown-item-description {
    font-size: 0.75rem;
  }
}

@media (max-width: 320px) {
  .logo-text {
    display: none;
  }
}

/* Book a Demo Button & Auth Section */
.header-cta-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.auth-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.login-btn,
.dashboard-btn {
  white-space: nowrap;
}

.book-demo-btn {
  white-space: nowrap;
}

/* Mobile Navigation Updates */
.mobile-nav-item {
  width: 100%;
}

.mobile-dropdown-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.mobile-dropdown-arrow.open {
  transform: rotate(180deg);
}

.mobile-dropdown-items {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border-color, #e2e8f0);
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.mobile-dropdown-item {
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--text-secondary, #64748b);
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item:focus {
  background-color: var(--hover-bg, rgba(0, 0, 0, 0.05));
  outline: none;
}

.mobile-dropdown-item-name {
  display: block;
  font-weight: 500;
  color: var(--text-primary, #1e293b);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.mobile-dropdown-item-description {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.3;
}

.mobile-cta {
  margin-top: 1.5rem;
  padding: 0 1rem;
  width: 100%;
}

.mobile-auth-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.mobile-book-demo-btn,
.mobile-login-btn,
.mobile-dashboard-btn,
.mobile-logout-btn {
  width: 100%;
  justify-content: center;
}

/* Dark mode support for new elements */
:root.dark-mode .mobile-dropdown-items {
  border-left-color: var(--border-color, #334155);
}

:root.dark-mode .mobile-dropdown-item:hover,
:root.dark-mode .mobile-dropdown-item:focus {
  background-color: var(--hover-bg, rgba(255, 255, 255, 0.1));
}

:root.dark-mode .mobile-dropdown-item-name {
  color: var(--text-primary, #f1f5f9);
}

:root.dark-mode .mobile-dropdown-item-description {
  color: var(--text-secondary, #94a3b8);
}
/* Footer Styles - High Contrast & Accessibility */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  margin-top: auto;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-contact p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--text-primary);
  text-decoration: underline;
  outline: none;
}

.footer-link:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Cookie settings link styling */
.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer .container {
    padding: 2rem 1rem 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-section {
    text-align: left;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.cookie-modal {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  margin-bottom: 1.5rem;
}

.cookie-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
  outline: none;
}

.cookie-modal-content {
  padding: 0 1.5rem;
}

.cookie-modal-lead {
  color: var(--text-secondary, #64748b);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-category {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary, #f8fafc);
}

.cookie-category-header {
  margin-bottom: 0.5rem;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background: var(--border-color, #e2e8f0);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--hero-from, #667eea) 0%, var(--hero-to, #764ba2) 100%);
}

.cookie-toggle input:checked + .toggle-slider::after {
  transform: translateX(1.25rem);
}

.toggle-slider.disabled {
  background: var(--text-tertiary, #94a3b8);
  cursor: not-allowed;
}

.toggle-slider.disabled::after {
  background: #f1f5f9;
}

.cookie-toggle input:disabled + .toggle-slider.disabled {
  background: var(--text-tertiary, #94a3b8);
}

.category-name {
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  font-size: 0.9rem;
}

.category-description {
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-reset-link {
  background: none;
  border: none;
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  transition: color 0.2s ease;
}

.cookie-reset-link:hover,
.cookie-reset-link:focus {
  color: var(--text-primary, #1e293b);
  outline: none;
}

.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
  line-height: 1.25;
}

.btn-primary {
  background: linear-gradient(135deg, var(--hero-from, #667eea) 0%, var(--hero-to, #764ba2) 100%);
  color: white;
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  outline: none;
}

.btn-secondary {
  background: var(--card-bg, #ffffff);
  color: var(--text-secondary, #64748b);
  border-color: var(--border-color, #e2e8f0);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
  border-color: var(--text-tertiary, #94a3b8);
  outline: none;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .cookie-modal-overlay {
    padding: 0.5rem;
  }
  
  .cookie-modal {
    border-radius: 1rem;
    max-height: 95vh;
  }
  
  .cookie-modal-header,
  .cookie-modal-content,
  .cookie-modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .cookie-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-modal-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .btn-primary,
  .btn-secondary {
    flex: 1;
  }
  
  .cookie-reset-link {
    text-align: center;
    order: -1;
  }
}

/* Focus states for accessibility */
.cookie-toggle:focus-within .toggle-slider {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Dark mode compatibility */
:root.dark-mode .cookie-modal {
  background: var(--card-bg, #1e293b);
  border-color: var(--border-color, #334155);
}

:root.dark-mode .cookie-modal-header {
  border-bottom-color: var(--border-color, #334155);
}

:root.dark-mode .cookie-category {
  background: var(--bg-primary, #0f172a);
  border-color: var(--border-color, #334155);
}

:root.dark-mode .cookie-modal-footer {
  border-top-color: var(--border-color, #334155);
}
/* Cookie Banner Styles - Mobile-first, WCAG-AA compliant */

/* Container with safe-area support */
.cookie-banner-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.cookie-banner {
  max-width: 64rem; /* 4xl */
  margin: 0 auto;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  position: relative;
  animation: bannerSlideUp 0.3s ease-out;
}

@keyframes bannerSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner-content {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: 1fr;
}

/* Mobile-first text layout */
.cookie-banner-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.cookie-banner-text p {
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-primary,
.btn-secondary,
.btn-text {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
  line-height: 1.25;
  text-align: center;
  width: 100%;
  min-height: 2.75rem;
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--hero-from, #667eea) 0%, var(--hero-to, #764ba2) 100%);
  color: white;
  border-color: transparent;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  outline: none;
}

.btn-secondary {
  background: var(--card-bg, #ffffff);
  color: var(--text-secondary, #64748b);
  border-color: var(--border-color, #e2e8f0);
}

.btn-secondary:hover:not(:disabled),
.btn-secondary:focus:not(:disabled) {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
  border-color: var(--text-tertiary, #94a3b8);
  outline: none;
}

.btn-text {
  background: transparent;
  color: var(--text-secondary, #64748b);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.btn-text:hover,
.btn-text:focus {
  color: var(--text-primary, #1e293b);
  background: var(--bg-secondary, #f8fafc);
  outline: none;
}

.cookie-policy-link {
  font-size: 0.75rem;
  color: var(--text-tertiary, #94a3b8);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.privacy-link {
  color: var(--text-secondary, #64748b);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.privacy-link:hover,
.privacy-link:focus {
  color: var(--text-primary, #1e293b);
  outline: none;
}

/* Dismiss button (only shown after choice) */
.cookie-banner-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-tertiary, #94a3b8);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  line-height: 1;
  transition: all 0.2s ease;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner-dismiss:hover,
.cookie-banner-dismiss:focus {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
  outline: none;
}

/* Floating cookie settings trigger */
.cookie-settings-trigger {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-settings-trigger:hover,
.cookie-settings-trigger:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  outline: none;
}

/* Tablet and desktop responsive design */
@media (min-width: 640px) {
  .cookie-banner-container {
    padding: 1.25rem;
  }
  
  .cookie-banner {
    border-radius: 1.5rem;
  }
  
  .cookie-banner-content {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
  }
  
  .cookie-banner-text {
    max-width: none;
  }
  
  .cookie-banner-actions {
    flex-shrink: 0;
    min-width: 20rem;
  }
  
  .cookie-banner-buttons {
    flex-direction: row;
    gap: 0.75rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: auto;
    min-width: 7rem;
    flex: 0 0 auto;
  }
  
  .btn-text {
    width: auto;
    flex: 0 0 auto;
  }
  
  .cookie-policy-link {
    text-align: left;
  }
}

/* Large desktop optimization */
@media (min-width: 1024px) {
  .cookie-banner-content {
    padding: 1.5rem;
  }
  
  .cookie-banner-text h3 {
    font-size: 1.25rem;
  }
  
  .cookie-banner-text p {
    font-size: 0.9375rem;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-text {
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-banner {
    border-width: 2px;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-text {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-text:hover,
  .cookie-banner-dismiss:hover,
  .cookie-settings-trigger:hover {
    transform: none;
  }
}

/* Dark mode compatibility */
:root.dark-mode .cookie-banner {
  background: var(--card-bg, #1e293b);
  border-color: var(--border-color, #334155);
}

:root.dark-mode .cookie-settings-trigger {
  background: var(--card-bg, #1e293b);
  border-color: var(--border-color, #334155);
}
.soft-constellations {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Simple gradient background without canvas */
.constellation-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.1) 0%, 
    rgba(139, 92, 246, 0.1) 25%,
    rgba(59, 130, 246, 0.1) 50%,
    rgba(99, 102, 241, 0.1) 75%,
    rgba(139, 92, 246, 0.1) 100%
  );
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { 
    background: linear-gradient(135deg, 
      rgba(99, 102, 241, 0.1) 0%, 
      rgba(139, 92, 246, 0.1) 25%,
      rgba(59, 130, 246, 0.1) 50%,
      rgba(99, 102, 241, 0.1) 75%,
      rgba(139, 92, 246, 0.1) 100%
    );
  }
  50% { 
    background: linear-gradient(135deg, 
      rgba(139, 92, 246, 0.1) 0%, 
      rgba(59, 130, 246, 0.1) 25%,
      rgba(99, 102, 241, 0.1) 50%,
      rgba(139, 92, 246, 0.1) 75%,
      rgba(59, 130, 246, 0.1) 100%
    );
  }
}

/* Floating Word Chips */
.floating-words {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.floating-word {
  position: absolute;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  animation: floatWord 15s ease-in-out infinite;
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: default;
}

/* Elegant word positioning for 12 words - with !important to override defaults */
.word-0 { top: 20% !important; left: 15% !important; animation-delay: 0s; }
.word-1 { top: 25% !important; left: 75% !important; animation-delay: 3s; }
.word-2 { top: 45% !important; left: 20% !important; animation-delay: 6s; }
.word-3 { top: 35% !important; left: 65% !important; animation-delay: 9s; }
.word-4 { top: 60% !important; left: 25% !important; animation-delay: 12s; }
.word-5 { top: 55% !important; left: 80% !important; animation-delay: 15s; }
.word-6 { top: 75% !important; left: 30% !important; animation-delay: 18s; }
.word-7 { top: 70% !important; left: 70% !important; animation-delay: 21s; }
.word-8 { top: 85% !important; left: 45% !important; animation-delay: 24s; }
.word-9 { top: 30% !important; left: 40% !important; animation-delay: 27s; }
.word-10 { top: 50% !important; left: 85% !important; animation-delay: 30s; }
.word-11 { top: 80% !important; left: 15% !important; animation-delay: 33s; }

.floating-word:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Language-specific styling */
.lang-ar, .lang-he, .lang-syr, .lang-cld {
  font-family: 'Noto Sans Arabic', 'Arial Unicode MS', sans-serif;
  direction: rtl;
  text-align: right;
}

.lang-am, .lang-ti, .lang-gez {
  font-family: 'Noto Sans Ethiopic', 'Arial Unicode MS', sans-serif;
}

.lang-so, .lang-mt, .lang-en, .lang-akk {
  font-family: 'Noto Sans', 'Arial Unicode MS', sans-serif;
}

/* Akkadian transliteration styling */
.lang-akk {
  font-style: italic;
  font-weight: 400;
}

.lang-akk {
  font-style: italic;
  font-family: 'Times New Roman', serif;
}

.lang-en {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
}



/* Floating animation for word chips */
@keyframes floatWord {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-5px) rotate(-1deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) rotate(0.5deg);
    opacity: 0.9;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Tablet optimizations */
  .floating-word {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
  
  .constellation-canvas {
    cursor: default;
  }
}

@media (max-width: 768px) {
  /* Mobile optimizations */
  .floating-word {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  /* Hide some words on mobile to avoid overcrowding */
  .word-8, .word-9, .word-10, .word-11 {
    display: none;
  }
  
  /* Adjust positioning for mobile - keep 8 words */
  .word-0 { top: 20%; left: 15%; }
  .word-1 { top: 30%; left: 75%; }
  .word-2 { top: 40%; left: 25%; }
  .word-3 { top: 50%; left: 70%; }
  .word-4 { top: 60%; left: 20%; }
  .word-5 { top: 70%; left: 65%; }
  .word-6 { top: 80%; left: 30%; }
  .word-7 { top: 25%; left: 50%; }
}

@media (max-width: 480px) {
  /* Small mobile devices */
  .floating-word {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  /* Hide even more words on very small screens - keep 6 words */
  .word-6, .word-7, .word-8, .word-9, .word-10, .word-11 {
    display: none;
  }
  
  /* Adjust remaining words for small screens */
  .word-0 { top: 25%; left: 20%; }
  .word-1 { top: 40%; left: 70%; }
  .word-2 { top: 55%; left: 30%; }
  .word-3 { top: 70%; left: 65%; }
  .word-4 { top: 35%; left: 50%; }
  .word-5 { top: 60%; left: 80%; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .floating-word {
    animation: none;
    opacity: 0.6;
  }
  
  .constellation-canvas {
    display: none;
  }
}
/* Card.css - Lighter, responsive card design using theme tokens */

.card {
  display: flex;
  height: 100%;
  flex-direction: column;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

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

/* Header */
.card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title-section {
  flex: 1;
  min-width: 0;
}

.card-title {
  color: var(--text-primary, #1e293b);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.25rem 0;
}

.card-meta {
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Body */
.card-body {
  color: var(--text-secondary, #64748b);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions - pinned to bottom with consistent alignment */
.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

@media (min-width: 640px) {
  .card-actions {
    flex-direction: row;
  }
}

@media (max-width: 639px) {
  .card-actions {
    flex-direction: column;
  }
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  min-width: fit-content;
}

/* On mobile, buttons stack and take full width */
@media (max-width: 639px) {
  .btn-primary,
  .btn-secondary {
    flex: 1;
  }
}

/* On larger screens, buttons size to content */
@media (min-width: 640px) {
  .btn-primary {
    flex: 1;
    max-width: 140px;
  }
  
  .btn-secondary {
    flex: 0 0 auto;
    min-width: 100px;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: white;
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: var(--card-bg, #ffffff);
  color: var(--text-secondary, #64748b);
  border-color: var(--border-color, #e2e8f0);
}

.btn-secondary:hover {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
  border-color: var(--border-color, #e2e8f0);
  transform: translateY(-1px);
}

/* Icon-only button styling */
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
  flex: 0 0 auto;
  min-width: auto;
}

.btn-icon:hover {
  background: var(--hero-from, #667eea);
  color: white;
  border-color: var(--hero-from, #667eea);
}

/* Responsive Design */
@media (min-width: 640px) {
  .card-actions {
    flex-direction: row;
  }
}

@media (max-width: 360px) {
  .card {
    padding: 1.25rem;
  }
  
  .card-actions {
    gap: 0.5rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}
@media (max-width: 768px) {
  .card {
    padding: 1.25rem;
  }
  
  .card-header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .card-icon {
    font-size: 1.75rem;
  }
  
  .card-title {
    font-size: 1.125rem;
  }
  
  .card-body {
    margin-bottom: 1.25rem;
  }
  
  .card-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .card-actions > * {
    flex: none;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1rem;
  }
  
  .card-badge {
    font-size: 0.75rem;
    padding: 0.1875rem 0.625rem;
  }
}
/* Stepper.css - Horizontal stepper component using existing theme variables */

.stepper-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.stepper-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stepper-item {
  display: flex;
}

.stepper-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
  width: 100%;
}

.stepper-link:hover {
  background: var(--hover-background);
  color: var(--primary-color);
}

.stepper-link:hover .stepper-number {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.stepper-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--secondary-background);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.stepper-label {
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .stepper-container {
    padding: 1.25rem;
  }
  
  .stepper-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .stepper-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .stepper-container {
    padding: 1rem;
  }
  
  .stepper-link {
    padding: 0.375rem;
    gap: 0.5rem;
  }
  
  .stepper-number {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8125rem;
  }
  
  .stepper-label {
    font-size: 0.8125rem;
  }
}
/* SectionHero Component Styles */
.section-hero {
  position: relative;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Add decorative grain pattern like Research page */
.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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-hero-muted);
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--on-hero-strong);
  margin: 0.5rem 0 1rem 0;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--on-hero-muted);
  max-width: 48rem;
  margin: 0 auto 1.5rem auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-tabs {
  margin-top: 1.5rem;
}

/* Responsive Design */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-gradient {
    padding: 6rem 0;
  }
  
  .hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .hero-title {
    font-size: 4rem;
  }
}
/* Button.css - Unified button component styles */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Sizes */
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-medium {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Variants */
.btn-primary {
  background: var(--accent-primary, #3b82f6);
  color: white;
}

.btn-primary:hover:not(.btn-disabled) {
  background: var(--accent-primary-hover, #2563eb);
  transform: translateY(-1px);
}

.btn-primary:active:not(.btn-disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--accent-secondary, #6b7280);
  color: white;
}

.btn-secondary:hover:not(.btn-disabled) {
  background: var(--accent-secondary-hover, #4b5563);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-primary, #3b82f6);
  color: var(--accent-primary, #3b82f6);
}

.btn-outline:hover:not(.btn-disabled) {
  background: var(--accent-primary, #3b82f6);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary, #1f2937);
}

.btn-ghost:hover:not(.btn-disabled) {
  background: var(--hover-background, #f3f4f6);
}

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

.btn-danger:hover:not(.btn-disabled) {
  background: #dc2626;
  transform: translateY(-1px);
}

/* States */
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loading {
  cursor: wait;
  pointer-events: none;
}

.btn-spinner {
  font-size: 0.875em;
}

/* Icon buttons */
.btn-icon {
  aspect-ratio: 1;
  padding: 0.75rem;
}

.btn-icon.btn-small {
  padding: 0.5rem;
}

.btn-icon.btn-large {
  padding: 1rem;
}
/* Badge.css - Unified badge/status component styles */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* Sizes */
.badge-small {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.25;
}

.badge-medium {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

.badge-large {
  padding: 0.375rem 1rem;
  font-size: 1rem;
  line-height: 1.25;
}

/* Variants */
.badge-default {
  background: var(--background-secondary, #f3f4f6);
  color: var(--text-secondary, #6b7280);
}

.badge-primary {
  background: var(--accent-primary, #3b82f6);
  color: white;
}

.badge-secondary {
  background: var(--accent-secondary, #6b7280);
  color: white;
}

.badge-success {
  background: #22c55e;
  color: white;
}

.badge-warning {
  background: #f59e0b;
  color: white;
}

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

/* Color variants for People section */
.badge-blue {
  background: #3b82f6;
  color: white;
}

.badge-green {
  background: #22c55e;
  color: white;
}

.badge-red {
  background: #ef4444;
  color: white;
}

.badge-orange {
  background: #f59e0b;
  color: white;
}

.badge-purple {
  background: #8b5cf6;
  color: white;
}

.badge-gray {
  background: #6b7280;
  color: white;
}

/* Status-specific variants */
.badge-active {
  background: #22c55e;
  color: white;
}

.badge-inactive {
  background: #6b7280;
  color: white;
}

.badge-published {
  background: #22c55e;
  color: white;
}

.badge-in-progress {
  background: #f59e0b;
  color: white;
}

.badge-completed {
  background: #3b82f6;
  color: white;
}

/* Light variants for better contrast */
.badge-default.badge-light {
  background: var(--background-tertiary, #e5e7eb);
  color: var(--text-primary, #1f2937);
}

.badge-primary.badge-light {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-success.badge-light {
  background: #dcfce7;
  color: #166534;
}

.badge-warning.badge-light {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger.badge-light {
  background: #fecaca;
  color: #b91c1c;
}
/* Card.css - Enhanced unified card component */

.ui-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background: var(--card-bg, #ffffff);
  transition: all 0.2s ease;
}

.ui-card-content {
  flex: 1;
}

/* Variants */
.ui-card-default {
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ui-card-elevated {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ui-card-outlined {
  border: 2px solid var(--border-color, #e2e8f0);
  box-shadow: none;
}

.ui-card-ghost {
  border: none;
  box-shadow: none;
  background: transparent;
}

/* Padding variants */
.ui-card-none {
  padding: 0;
}

.ui-card-small {
  padding: 1rem;
}

.ui-card-medium {
  padding: 1.5rem;
}

.ui-card-large {
  padding: 2rem;
}

/* Header and Footer */
.ui-card-header {
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.ui-card-footer {
  border-top: 1px solid var(--border-color, #e2e8f0);
  margin-top: 1rem;
  padding-top: 1rem;
}

.ui-card-none .ui-card-header {
  padding: 1.5rem 1.5rem 1rem;
  margin: 0;
}

.ui-card-none .ui-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  margin: 0;
}

.ui-card-none .ui-card-content {
  padding: 0 1.5rem;
}

/* Hover effects */
.ui-card-hover:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.ui-card-ghost.ui-card-hover:hover {
  background: var(--hover-background, #f9fafb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .ui-card {
    background: var(--card-bg-dark, #1f2937);
    border-color: var(--border-color-dark, #374151);
  }
  
  .ui-card-ghost {
    background: transparent;
  }
  
  .ui-card-ghost.ui-card-hover:hover {
    background: var(--hover-background-dark, #374151);
  }
}
/* Container.css - Unified container layouts */

.ui-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Size variants */
.ui-container-small {
  max-width: 768px;
}

.ui-container-default {
  max-width: 1200px;
}

.ui-container-large {
  max-width: 1400px;
}

.ui-container-full {
  max-width: none;
}

/* Responsive padding */
@media (min-width: 640px) {
  .ui-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ui-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
/* Pill.css - Filter pills and tags with theme support */

.ui-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid;
  transition: all 0.2s ease;
}

/* Light mode default */
:root .ui-pill {
  border-color: #e2e8f0;
  background: #ffffff;
  color: #6b7280;
}

/* Dark mode */
:root.dark-mode .ui-pill {
  border-color: #374151;
  background: #1f2937;
  color: #9ca3af;
}

/* Sizes */
.ui-pill-small {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.ui-pill-medium {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.ui-pill-large {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

/* Variants - primary */
:root .ui-pill-primary {
  border-color: #3b82f6;
  color: #3b82f6;
}

:root.dark-mode .ui-pill-primary {
  border-color: #60a5fa;
  color: #60a5fa;
}

/* Variants - secondary */
:root .ui-pill-secondary {
  border-color: #6b7280;
  color: #6b7280;
}

:root.dark-mode .ui-pill-secondary {
  border-color: #9ca3af;
  color: #9ca3af;
}

/* Active state */
:root .ui-pill-active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

:root.dark-mode .ui-pill-active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

:root .ui-pill-primary.ui-pill-active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

:root.dark-mode .ui-pill-primary.ui-pill-active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

:root .ui-pill-secondary.ui-pill-active {
  background: #6b7280;
  border-color: #6b7280;
  color: white;
}

:root.dark-mode .ui-pill-secondary.ui-pill-active {
  background: #9ca3af;
  border-color: #9ca3af;
  color: white;
}
}

/* Clickable pills */
.ui-pill-clickable {
  cursor: pointer;
  border: none;
}

/* Hover states */
:root .ui-pill-clickable:hover:not(.ui-pill-disabled) {
  background: #f3f4f6;
  transform: translateY(-1px);
}

:root.dark-mode .ui-pill-clickable:hover:not(.ui-pill-disabled) {
  background: #374151;
  transform: translateY(-1px);
}

:root .ui-pill-clickable.ui-pill-active:hover:not(.ui-pill-disabled) {
  background: #2563eb;
}

:root.dark-mode .ui-pill-clickable.ui-pill-active:hover:not(.ui-pill-disabled) {
  background: #1d4ed8;
}

/* Focus states */
:root .ui-pill-clickable:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

:root.dark-mode .ui-pill-clickable:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Disabled state */
.ui-pill-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ui-pill-disabled:hover {
  transform: none;
}
/* BeforeAfterSlider.css */

.before-after-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.view-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  background: var(--bg-secondary, #f8fafc);
  border-radius: 0.75rem;
  padding: 0.25rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.toggle-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary, #64748b);
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: var(--card-bg, #ffffff);
  color: var(--text-primary, #1e293b);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover:not(.active) {
  color: var(--text-primary, #1e293b);
}

.toggle-btn:focus {
  outline: 2px solid var(--hero-from, #667eea);
  outline-offset: 2px;
}

/* Slider View */
.slider-container {
  width: 100%;
}

.before-after-slider {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.before-content,
.after-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
}

.before-content h3,
.after-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary, #1e293b);
}

.text-sample {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary, #1e293b);
  background: var(--bg-secondary, #f8fafc);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color, #e2e8f0);
  flex: 1;
  overflow-y: auto;
}

.after-content {
  background: var(--card-bg, #ffffff);
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--hero-from, #667eea);
  pointer-events: none;
  z-index: 10;
  transition: left 0.1s ease;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.5rem;
  height: 1.5rem;
  background: var(--hero-from, #667eea);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-input {
  width: 100%;
  height: 0.5rem;
  background: var(--bg-secondary, #f8fafc);
  border-radius: 0.25rem;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  margin-top: 1rem;
}

.slider-input::-webkit-slider-thumb {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--hero-from, #667eea);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.slider-input::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--hero-from, #667eea);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: none;
}

.slider-input:focus {
  outline: 2px solid var(--hero-from, #667eea);
  outline-offset: 2px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
}

/* Tab View */
.tab-container {
  width: 100%;
}

.tab-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tab-panel {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary, #1e293b);
}

.tab-panel .text-sample {
  margin: 0;
  min-height: 120px;
}

.json-output {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.5rem;
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

.json-output pre {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-primary, #1e293b);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Dark mode support */
:root.dark-mode .view-toggle {
  background: var(--bg-secondary, #334155);
}

:root.dark-mode .toggle-btn.active {
  background: var(--card-bg, #1e293b);
  color: var(--text-primary, #f1f5f9);
}

:root.dark-mode .before-content,
:root.dark-mode .after-content,
:root.dark-mode .tab-panel {
  background: var(--card-bg, #1e293b);
  border-color: var(--border-color, #334155);
}

:root.dark-mode .text-sample,
:root.dark-mode .json-output {
  background: var(--bg-secondary, #334155);
  border-color: var(--border-color, #475569);
  color: var(--text-primary, #f1f5f9);
}

:root.dark-mode .slider-input {
  background: var(--bg-secondary, #334155);
}

/* Responsive design */
@media (max-width: 768px) {
  .before-after-slider {
    height: 250px;
  }
  
  .before-content,
  .after-content {
    padding: 1.5rem;
  }
  
  .text-sample {
    font-size: 0.8rem;
  }
  
  .tab-content {
    grid-template-columns: 1fr;
  }
  
  .view-toggle {
    width: 100%;
  }
  
  .toggle-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .before-after-slider {
    height: 200px;
  }
  
  .before-content,
  .after-content {
    padding: 1rem;
  }
  
  .text-sample {
    font-size: 0.75rem;
    padding: 0.75rem;
  }
  
  .tab-panel {
    padding: 1rem;
  }
  
  .json-output {
    max-height: 200px;
  }
}/* StepDiagram.css */

.step-diagram {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.2s ease;
}

.step-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--hero-from, #667eea);
}

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--hero-from, #667eea) 0%, var(--hero-to, #764ba2) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

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

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary, #1e293b);
}

.step-description {
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.6;
  margin: 0;
}

.step-connector {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 2rem;
  z-index: 10;
}

.arrow-icon {
  color: var(--hero-from, #667eea);
  opacity: 0.7;
}

/* Desktop layout - horizontal flow */
@media (min-width: 1024px) {
  .steps-container {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    position: relative;
  }

  .step-item {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    position: relative;
  }

  .step-item:not(:last-child) {
    margin-right: 2rem;
  }

  .step-number {
    margin: 0 auto 1.5rem auto;
  }

  .step-connector {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 2rem;
    background: var(--bg-primary, #ffffff);
    border-radius: 0.5rem;
    z-index: 10;
  }

  .step-connector .arrow-icon {
    transform: rotate(0deg);
  }
}

/* Tablet layout - keep vertical but adjust spacing */
@media (min-width: 768px) and (max-width: 1023px) {
  .step-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .step-number {
    margin-bottom: 0;
  }

  .step-connector {
    right: -1.5rem;
    width: 3rem;
  }

  .step-connector .arrow-icon {
    transform: rotate(90deg);
  }
}

/* Mobile layout - vertical stack */
@media (max-width: 767px) {
  .steps-container {
    gap: 1.5rem;
  }

  .step-item {
    flex-direction: row;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .step-title {
    font-size: 1.125rem;
  }

  .step-description {
    font-size: 0.8rem;
  }

  .step-connector {
    display: none; /* Hide connectors on mobile for cleaner look */
  }
}

/* Dark mode support */
:root.dark-mode .step-item {
  background: var(--card-bg, #1e293b);
  border-color: var(--border-color, #334155);
}

:root.dark-mode .step-item:hover {
  border-color: var(--hero-from, #667eea);
}

:root.dark-mode .step-title {
  color: var(--text-primary, #f1f5f9);
}

:root.dark-mode .step-description {
  color: var(--text-secondary, #cbd5e1);
}

:root.dark-mode .step-connector {
  background: var(--bg-primary, #0f172a);
}

/* Animation for step appearance */
.step-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }
.step-item:nth-child(5) { animation-delay: 0.5s; }

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .step-item {
    animation: none;
    opacity: 1;
  }
  
  .step-item:hover {
    transform: none;
  }
}/* OCR Pipeline Preview Styles */
.ocr-pipeline-preview {
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.preview-header h3 {
  margin: 0;
  color: var(--text-primary, #1e293b);
  font-size: 1.25rem;
}

.processing-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--surface-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  min-width: 80px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-weight: 600;
  color: var(--primary-color, #2563eb);
  font-size: 0.875rem;
}

/* Preview Tabs */
.preview-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color, #e2e8f0);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  gap: 0.25rem;
}

.preview-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.preview-tab:hover {
  color: var(--primary-color, #2563eb);
  background: var(--surface-bg, #f8fafc);
}

.preview-tab.active {
  color: var(--primary-color, #2563eb);
  border-bottom-color: var(--primary-color, #2563eb);
  font-weight: 600;
}

.tab-icon {
  font-size: 1rem;
}

.tab-label {
  font-size: 0.875rem;
}

/* Preview Content */
.preview-content {
  min-height: 400px;
}

/* Loading State */
.pipeline-preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 2rem;
}

.processing-animation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
}

.processing-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.processing-step.active {
  opacity: 1;
  background: var(--primary-bg, #eff6ff);
  border-color: var(--primary-color, #2563eb);
}

.step-icon {
  font-size: 1.5rem;
}

.step-text {
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
}

/* Empty State */
.pipeline-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2rem;
  text-align: center;
}

.empty-state {
  max-width: 500px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary, #1e293b);
}

.empty-state p {
  color: var(--text-secondary, #64748b);
  margin-bottom: 2rem;
}

.pipeline-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--surface-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
}

.feature-icon {
  font-size: 1.25rem;
}

/* Text Extraction Preview */
.text-extraction-preview {
  display: grid;
  gap: 1.5rem;
}

.extraction-controls {
  display: flex;
  gap: 0.5rem;
}

.view-toggle {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color, #e2e8f0);
  background: white;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.view-toggle:hover {
  background: var(--surface-bg, #f8fafc);
}

.view-toggle.active {
  background: var(--primary-color, #2563eb);
  color: white;
  border-color: var(--primary-color, #2563eb);
}

.extraction-content {
  background: var(--code-bg, #f1f5f9);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.extracted-text,
.structured-json {
  margin: 0;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--text-primary, #1e293b);
}

.extraction-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.insight {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--surface-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
}

.insight-label {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  font-weight: 500;
}

.insight-value {
  font-size: 0.875rem;
  color: var(--text-primary, #1e293b);
}

/* Bounding Box Preview */
.bounding-box-preview {
  display: grid;
  gap: 1.5rem;
}

.bbox-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.type-filter {
  padding: 0.5rem;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  background: white;
  font-size: 0.875rem;
}

.bbox-count {
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
}

.bbox-visualization {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
}

.document-mockup {
  background: var(--surface-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 1rem;
  overflow: hidden;
}

.document-page {
  position: relative;
  width: 100%;
  height: 400px;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
}

.bounding-box {
  position: absolute;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 2px;
}

.bounding-box:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.bounding-box.selected {
  border-color: var(--primary-color, #2563eb);
  background: rgba(37, 99, 235, 0.1);
}

.bounding-box.type-header {
  border-color: #10b981;
}

.bounding-box.type-line_item {
  border-color: #3b82f6;
}

.bounding-box.type-total_amount {
  border-color: #f59e0b;
}

.bounding-box.type-date {
  border-color: #8b5cf6;
}

.bounding-box.type-customer {
  border-color: #06b6d4;
}

.confidence-badge {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 600;
}

.bbox-details {
  background: var(--surface-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 1rem;
  height: fit-content;
}

.selected-bbox-info h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary, #1e293b);
}

.bbox-info {
  display: grid;
  gap: 0.75rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
  font-weight: 500;
  min-width: 80px;
}

.info-value {
  font-size: 0.875rem;
  color: var(--text-primary, #1e293b);
  text-align: right;
  font-family: 'Monaco', 'Menlo', monospace;
  word-break: break-word;
}

.bbox-help {
  text-align: center;
  padding: 1rem 0;
}

.bbox-help p {
  color: var(--text-secondary, #64748b);
  margin-bottom: 1.5rem;
}

.type-legend {
  display: grid;
  gap: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-item.type-header .legend-color {
  background: #10b981;
}

.legend-item.type-line_item .legend-color {
  background: #3b82f6;
}

.legend-item.type-total_amount .legend-color {
  background: #f59e0b;
}

.legend-item.type-date .legend-color {
  background: #8b5cf6;
}

/* Before/After Comparison */
.before-after-comparison {
  display: grid;
  gap: 1.5rem;
}

.comparison-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
  font-weight: 500;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-label {
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
  min-width: 50px;
}

.comparison-slider {
  flex: 1;
  height: 6px;
  background: var(--surface-bg, #f1f5f9);
  border-radius: 3px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.comparison-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary-color, #2563eb);
  border-radius: 50%;
  cursor: pointer;
}

.comparison-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary-color, #2563eb);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.comparison-viewer {
  position: relative;
  background: var(--surface-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 1.5rem;
  overflow: hidden;
}

.text-comparison {
  position: relative;
  min-height: 200px;
}

.before-text,
.after-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.before-text {
  background: var(--error-bg, #fef2f2);
  padding: 1rem;
}

.after-text {
  background: var(--success-bg, #f0fdf4);
  padding: 1rem;
}

.before-text pre,
.after-text pre {
  margin: 0;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  pointer-events: none;
  z-index: 10;
}

.handle-line {
  width: 100%;
  height: 100%;
  background: var(--primary-color, #2563eb);
}

.handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--primary-color, #2563eb);
  border-radius: 50%;
  border: 2px solid white;
}

.corrections-summary {
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 1.5rem;
}

.corrections-summary h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary, #1e293b);
}

.corrections-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.correction-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--surface-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  flex-wrap: wrap;
}

.correction-before {
  background: var(--error-bg, #fef2f2);
  color: var(--error-text, #dc2626);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
}

.correction-arrow {
  color: var(--text-secondary, #64748b);
  font-weight: bold;
}

.correction-after {
  background: var(--success-bg, #f0fdf4);
  color: var(--success-text, #16a34a);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
}

.correction-reason {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  font-style: italic;
}

.correction-confidence {
  margin-left: auto;
  background: var(--primary-bg, #eff6ff);
  color: var(--primary-color, #2563eb);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.enhancement-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--primary-bg, #eff6ff);
  border: 1px solid var(--primary-color, #2563eb);
  border-radius: 8px;
}

.score-label {
  font-weight: 500;
  color: var(--text-primary, #1e293b);
}

.score-value {
  font-weight: 600;
  color: var(--primary-color, #2563eb);
  font-size: 1.125rem;
}

/* Confidence Map Preview */
.confidence-map-preview {
  display: grid;
  gap: 1.5rem;
}

.confidence-legend h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary, #1e293b);
}

.legend-items {
  display: grid;
  gap: 0.5rem;
}

.confidence-visualization .document-page {
  background: #fafafa;
}

.confidence-box {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.confidence-box:hover {
  opacity: 0.9;
}

.confidence-text {
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.confidence-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--surface-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ocr-pipeline-preview {
    padding: 1rem;
  }
  
  .preview-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .processing-stats {
    justify-content: center;
  }
  
  .bbox-visualization {
    grid-template-columns: 1fr;
  }
  
  .bbox-details {
    order: -1;
  }
  
  .slider-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .comparison-slider {
    width: 100%;
  }
  
  .correction-item {
    flex-direction: column;
    align-items: stretch;
  }
  
  .correction-confidence {
    margin-left: 0;
    align-self: flex-end;
  }
  
  .enhancement-score {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--color-background);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  position: relative;
  animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal Sizes */
.modal-small {
  width: 100%;
  max-width: 400px;
}

.modal-medium {
  width: 100%;
  max-width: 600px;
}

.modal-large {
  width: 100%;
  max-width: 900px;
}

.modal-full {
  width: 95vw;
  height: 95vh;
  max-width: none;
  max-height: none;
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background-subtle);
  border-radius: 12px 12px 0 0;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-foreground);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-foreground-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background: var(--color-background-hover);
  color: var(--color-foreground);
}

.modal-close:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Modal Content */
.modal-content {
  padding: 1.5rem;
  color: var(--color-foreground);
}

/* Scrolling */
.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: var(--color-background-subtle);
}

.modal::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: var(--color-foreground-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-backdrop {
    padding: 0.5rem;
  }
  
  .modal {
    width: 100%;
    max-width: none;
    max-height: 95vh;
    margin: 0;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-content {
    padding: 1rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
}/* Table Styles */
.table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* Table Header */
.table th {
  background: var(--color-background-subtle);
  color: var(--color-foreground);
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.table th:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.th-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.table th.sortable:hover {
  background: var(--color-background-hover);
}

.sort-indicator {
  color: var(--color-foreground-muted);
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.table th.sorted .sort-indicator {
  opacity: 1;
  color: var(--color-primary);
}

/* Table Body */
.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-foreground);
  vertical-align: top;
}

.table td:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background: var(--color-background-subtle);
}

.table tbody tr.clickable {
  cursor: pointer;
}

.table tbody tr.clickable:hover {
  background: var(--color-background-hover);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Empty State */
.empty-message {
  text-align: center;
  color: var(--color-foreground-muted);
  font-style: italic;
  padding: 3rem 1rem;
}

/* Loading State */
.table-loading {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  overflow: hidden;
}

.table-skeleton {
  width: 100%;
}

.skeleton-row {
  display: flex;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.skeleton-row:last-child {
  border-bottom: none;
}

.skeleton-cell {
  height: 1rem;
  background: var(--color-background-subtle);
  border-radius: 4px;
  margin-right: 1rem;
  flex: 1;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-cell:last-child {
  margin-right: 0;
}

@keyframes skeleton-shimmer {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .table {
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
  }
  
  .th-content {
    gap: 0.25rem;
  }
  
  .sort-indicator {
    font-size: 0.7rem;
  }
}

/* Utilities */
.table .text-center {
  text-align: center;
}

.table .text-right {
  text-align: right;
}

.table .text-muted {
  color: var(--color-foreground-muted);
}

.table .font-mono {
  font-family: var(--font-mono);
}

.table .font-bold {
  font-weight: 600;
}

.table .nowrap {
  white-space: nowrap;
}/* Demo OCR Styles */
.demo-ocr {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.demo-header {
  text-align: center;
  margin-bottom: 2rem;
}
.demo-header h1 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.demo-header .subtitle {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.demo-header .engagement-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.demo-header .engagement-banner .engagement-text {
  font-weight: 500;
}

.demo-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
}

.demo-content {
  min-height: 400px;
}

/* Sample Viewer Styles */
.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.sample-card {
  border: 2px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.sample-card:hover, .sample-card.selected {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.sample-card .sample-preview {
  height: 200px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sample-card .sample-preview img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.sample-card .sample-preview .preview-placeholder {
  color: var(--color-text-secondary);
  text-align: center;
}
.sample-card .sample-info {
  padding: 1rem;
}
.sample-card .sample-info h4 {
  margin: 0 0 0.5rem 0;
  color: var(--color-text);
}
.sample-card .sample-info .sample-category {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.sample-card .sample-info .sample-description {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Pipeline Preview Styles */
.pipeline-preview .preview-stages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .pipeline-preview .preview-stages {
    grid-template-columns: 1fr;
  }
}
.pipeline-preview .stage-card .stage-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pipeline-preview .stage-card .stage-header h4 {
  margin: 0;
  color: var(--color-text);
}
.pipeline-preview .stage-card .stage-header .stage-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}
.pipeline-preview .image-analysis {
  position: relative;
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
}
.pipeline-preview .image-analysis .analysis-image {
  width: 100%;
  height: auto;
  display: block;
}
.pipeline-preview .image-analysis .bounding-boxes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pipeline-preview .image-analysis .bbox {
  position: absolute;
  border: 2px solid;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.pipeline-preview .image-analysis .bbox.confidence-high {
  border-color: #10b981;
}
.pipeline-preview .image-analysis .bbox.confidence-medium {
  border-color: #f59e0b;
}
.pipeline-preview .image-analysis .bbox.confidence-low {
  border-color: #ef4444;
}
.pipeline-preview .image-analysis .bbox .bbox-label {
  position: absolute;
  top: -1.5rem;
  left: 0;
  background: inherit;
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px 4px 0 0;
  white-space: nowrap;
}
.pipeline-preview .extracted-text {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
}
.pipeline-preview .extracted-text .text-content {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--color-text);
}
.pipeline-preview .confidence-legend {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: 8px;
}
.pipeline-preview .confidence-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.pipeline-preview .confidence-legend .legend-item .color-box {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}
.pipeline-preview .processing-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.pipeline-preview .processing-stats .stat-card {
  background: var(--color-surface);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}
.pipeline-preview .processing-stats .stat-card .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
}
.pipeline-preview .processing-stats .stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* File Upload Styles */
.upload-area {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.upload-area.dragover {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.05);
}
.upload-area .upload-icon {
  font-size: 3rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}
.upload-area .upload-text {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.upload-area .upload-hint {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.file-input {
  display: none;
}

.upload-progress {
  margin: 1rem 0;
}
.upload-progress .progress-bar {
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
  height: 8px;
}
.upload-progress .progress-bar .progress-fill {
  background: var(--color-primary);
  height: 100%;
  transition: width 0.3s ease;
}
.upload-progress .progress-text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Waitlist Form Styles */
.waitlist-form {
  max-width: 600px;
  margin: 0 auto;
}
.waitlist-form .form-header {
  text-align: center;
  margin-bottom: 2rem;
}
.waitlist-form .form-header h3 {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.waitlist-form .form-header p {
  color: var(--color-text-secondary);
}
.waitlist-form .form-header .demo-usage-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.waitlist-form .form-header .demo-usage-banner .usage-text {
  font-weight: 500;
}
.waitlist-form .form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.waitlist-form .form-section:last-of-type {
  border-bottom: none;
}
.waitlist-form .form-section h4 {
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.waitlist-form .form-group {
  margin-bottom: 1rem;
}
.waitlist-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-weight: 500;
}
.waitlist-form .form-group label .required {
  color: var(--color-danger);
  margin-left: 0.25rem;
}
.waitlist-form .form-group input, .waitlist-form .form-group select, .waitlist-form .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.waitlist-form .form-group input:focus, .waitlist-form .form-group select:focus, .waitlist-form .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.waitlist-form .form-group input.error, .waitlist-form .form-group select.error, .waitlist-form .form-group textarea.error {
  border-color: var(--color-danger);
}
.waitlist-form .form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.waitlist-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) {
  .waitlist-form .form-row {
    grid-template-columns: 1fr;
  }
}
.waitlist-form .error-text {
  color: var(--color-danger);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.waitlist-form .general-error {
  background: rgba(var(--color-danger-rgb), 0.1);
  border: 1px solid var(--color-danger);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--color-danger);
}
.waitlist-form .consent-section .checkbox-group {
  margin-bottom: 1rem;
}
.waitlist-form .consent-section .checkbox-group .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}
.waitlist-form .consent-section .checkbox-group .checkbox-label input[type=checkbox] {
  width: auto;
  margin: 0;
}
.waitlist-form .consent-section .checkbox-group .checkbox-label .checkbox-text {
  color: var(--color-text);
}
.waitlist-form .consent-section .checkbox-group .checkbox-label .checkbox-text a {
  color: var(--color-primary);
  text-decoration: none;
}
.waitlist-form .consent-section .checkbox-group .checkbox-label .checkbox-text a:hover {
  text-decoration: underline;
}
.waitlist-form .consent-section .checkbox-group .checkbox-label .checkbox-text .required {
  color: var(--color-danger);
}
.waitlist-form .form-actions {
  text-align: center;
  padding-top: 1rem;
}
.waitlist-form .form-actions .submit-button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.waitlist-form .form-actions .privacy-note {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
}

.waitlist-success {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.waitlist-success .success-content .success-icon {
  font-size: 4rem;
  color: var(--color-success);
  margin-bottom: 1rem;
}
.waitlist-success .success-content h3 {
  color: var(--color-text);
  margin-bottom: 1rem;
}
.waitlist-success .success-content p {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}
.waitlist-success .engagement-summary {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.waitlist-success .engagement-summary h4 {
  color: var(--color-text);
  margin-bottom: 1rem;
}
.waitlist-success .engagement-summary .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.waitlist-success .engagement-summary .stats-grid .stat {
  text-align: center;
}
.waitlist-success .engagement-summary .stats-grid .stat .stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
}
.waitlist-success .engagement-summary .stats-grid .stat .stat-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.waitlist-success .next-steps {
  text-align: left;
  background: var(--color-surface);
  border-radius: 8px;
  padding: 1.5rem;
}
.waitlist-success .next-steps h4 {
  color: var(--color-text);
  margin-bottom: 1rem;
}
.waitlist-success .next-steps ul {
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding-left: 1.5rem;
}
.waitlist-success .next-steps ul li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .demo-ocr {
    padding: 1rem;
  }
  .demo-tabs {
    flex-wrap: wrap;
  }
  .samples-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-preview .preview-stages {
    grid-template-columns: 1fr;
  }
}/* DocsLayout.css - Unified layout for all documentation pages */

/* Light mode theme variables */
:root.light-mode {
  --card-background: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --background-light: #f8f9fa;
  --border-light: #e9ecef;
  --border-color: #e0e0e0;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --card-bg: #f8fafc;
  --code-background: #f8fafc;
  --callout-info-bg: rgba(59, 130, 246, 0.05);
  --callout-info-border: #3b82f6;
  --callout-warning-bg: rgba(245, 158, 11, 0.05);
  --callout-warning-border: #f59e0b;
  --callout-success-bg: rgba(16, 185, 129, 0.05);
  --callout-success-border: #10b981;
}

/* Dark mode theme variables */
:root.dark-mode {
  --card-background: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --background-light: #334155;
  --border-light: #475569;
  --border-color: #475569;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --card-bg: #1e293b;
  --code-background: #334155;
  --callout-info-bg: rgba(96, 165, 250, 0.1);
  --callout-info-border: #60a5fa;
  --callout-warning-bg: rgba(251, 191, 36, 0.1);
  --callout-warning-border: #fbbf24;
  --callout-success-bg: rgba(34, 197, 94, 0.1);
  --callout-success-border: #22c55e;
}

/* Fallback for systems that don't have theme classes yet */
@media (prefers-color-scheme: dark) {
  :root:not(.light-mode):not(.dark-mode) {
    --card-background: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --background-light: #334155;
    --border-light: #475569;
    --border-color: #475569;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --card-bg: #1e293b;
    --code-background: #334155;
    --callout-info-bg: rgba(96, 165, 250, 0.1);
    --callout-info-border: #60a5fa;
    --callout-warning-bg: rgba(251, 191, 36, 0.1);
    --callout-warning-border: #fbbf24;
    --callout-success-bg: rgba(34, 197, 94, 0.1);
    --callout-success-border: #22c55e;
  }
}

.docs-layout {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Container follows site standard */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

@media (min-width: 640px) {
  .sm-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg-px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Grid Layout */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }

@media (min-width: 1024px) {
  .lg-grid-cols-sidebar { grid-template-columns: 280px 1fr; }
  .lg-sticky { position: sticky; }
  .lg-top-24 { top: 6rem; }
}

.h-fit { height: fit-content; }
.min-w-0 { min-width: 0; }

/* Sidebar Navigation */
.docs-nav {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.docs-nav-section {
  margin-bottom: 2rem;
}

.docs-nav-section:last-child {
  margin-bottom: 0;
}

.docs-nav-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.docs-nav-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav-section li {
  margin-bottom: 0.25rem;
}

.docs-nav-section a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.docs-nav-section a:hover,
.docs-nav-section a.active {
  background: #3b82f6;
  color: white;
}

/* Breadcrumbs */
.docs-breadcrumbs {
  margin-bottom: 2rem;
}

.docs-breadcrumbs ol {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.docs-breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--border-color);
}

.docs-breadcrumbs a {
  color: #3b82f6;
  text-decoration: none;
}

.docs-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Header */
.docs-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.docs-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.docs-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.docs-meta span {
  padding: 0.375rem 0.75rem;
  background: var(--background-light);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

/* Table of Contents */
.docs-toc-wrapper {
  margin-bottom: 3rem;
}

.docs-toc {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.docs-toc summary {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.docs-toc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-toc-nav li {
  margin-bottom: 0.5rem;
}

.docs-toc-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.25rem 0;
  display: block;
  transition: color 0.2s ease;
}

.docs-toc-nav a:hover {
  color: #3b82f6;
}

.toc-level-3 {
  padding-left: 1rem;
}

/* Content */
.docs-content {
  line-height: 1.7;
  color: var(--text-primary, #1e293b);
}

.prose {
  max-width: none;
}

.max-w-none {
  max-width: none;
}

/* Typography */
.docs-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem 0;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.docs-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
  color: var(--text-primary);
}

.docs-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--text-primary);
}

.docs-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.docs-content ul,
.docs-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.docs-content li {
  margin-bottom: 0.5rem;
}

.docs-content strong {
  font-weight: 600;
}

/* Code blocks */
.docs-content pre {
  background: var(--code-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 2rem 0;
  position: relative;
  color: var(--text-primary);
}

.docs-content code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Inline code */
.docs-content :not(pre) > code {
  background: var(--code-background);
  color: var(--text-primary);
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  font-size: 0.875em;
}

/* Cards and callouts */
.card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  color: var(--text-primary);
}

.callout {
  background: var(--background-light);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid;
}

.callout-info {
  background: var(--callout-info-bg);
  border-color: var(--callout-info-border);
}

.callout-warning {
  background: var(--callout-warning-bg);
  border-color: var(--callout-warning-border);
}

.callout-success {
  background: var(--callout-success-bg);
  border-color: var(--callout-success-border);
}

/* Footer */
.docs-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.docs-updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Mobile responsive */
@media (max-width: 1023px) {
  .docs-nav {
    margin-bottom: 2rem;
  }
  
  .docs-header h1 {
    font-size: 2rem;
  }
  
  .docs-toc {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .py-12 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .docs-header h1 {
    font-size: 1.75rem;
  }
  
  .docs-description {
    font-size: 1.125rem;
  }
  
  .docs-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
.code-block-container {
  margin: 1rem 0;
}

.code-block-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.code-block-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.code-tab {
  background: var(--bg-secondary);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-top: 2px solid transparent;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.code-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.code-tab.active {
  background: var(--bg-primary);
  color: var(--accent-color);
  border-top-color: var(--accent-color);
}

.code-block-container pre {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .code-tab {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
  }
  
  .code-tab:hover {
    background: var(--bg-secondary);
  }
  
  .code-tab.active {
    background: var(--bg-primary);
    color: var(--accent-color);
  }
}
