/* AI Guardian - Consolidated & Optimized CSS */

/* ============================================
   1. CSS Variables & Reset
   ============================================ */

:root {
  /* Colors */
  --primary: #00d9ff;
  --primary-hover: #00b8e6;
  --primary-dark: #0099cc;
  --secondary: #141414;
  --accent: #ff00ff;

  /* Backgrounds */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: rgba(20, 20, 20, 0.95);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Monaco', 'Courier New', monospace;

  /* Borders & Shadows */
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);

  /* Transitions */
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================
   2. Base Styles
   ============================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px; /* Fixed nav height */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus {
  color: var(--primary-hover);
  outline: none;
}

/* Focus Styles for Accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   3. Layout Components
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
}

/* ============================================
   4. Navigation
   ============================================ */

.nav-premium {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: transform var(--transition);
}

.nav-premium.nav-hidden {
  transform: translateY(-100%);
}

.nav-premium .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  position: relative;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
}

/* ============================================
   5. Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  gap: var(--space-xs);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover:not(:disabled) {
  background: var(--primary);
  color: var(--bg-primary);
}

/* ============================================
   6. Cards
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-xl);
  transition: all var(--transition);
}

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

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   7. Forms
   ============================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

/* ============================================
   8. Hero Section
   ============================================ */

.hero-premium {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.hero-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.stat-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

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

/* ============================================
   9. Scanner Section
   ============================================ */

.scanner {
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
}

.scanner-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.config-panel,
.results-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-xl);
}

.scan-status {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: var(--space-lg);
}

.status-idle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

.progress-container {
  margin: var(--space-lg) 0;
}

.progress-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 300ms ease;
}

.scan-log {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  height: 300px;
  overflow-y: auto;
}

/* ============================================
   10. OWASP Section
   ============================================ */

.owasp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.owasp-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all var(--transition);
  cursor: pointer;
}

.owasp-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.owasp-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.test-count {
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 217, 255, 0.1);
  border-radius: 20px;
  display: inline-block;
  font-size: 0.875rem;
  color: var(--primary);
}

/* ============================================
   11. Test Inventory Section
   ============================================ */

.test-inventory {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: var(--space-3xl) 0;
}

.inventory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-3xl) 0;
}

.stat-box {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all var(--transition);
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.stat-huge {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-sm);
}

/* Scan Modes */
.scan-modes {
  margin: var(--space-3xl) 0;
}

.scan-modes h3 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.mode-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: var(--space-xl);
  transition: all var(--transition);
  cursor: pointer;
}

.mode-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.mode-card[data-mode="basic"]:hover {
  border-color: #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.mode-card[data-mode="standard"]:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.mode-card[data-mode="comprehensive"]:hover {
  border-color: #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

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

.mode-header h4 {
  flex: 1;
  margin: 0 var(--space-md);
}

.mode-time {
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.mode-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.mode-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-text {
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.mode-tests {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.test-item {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  padding-left: var(--space-md);
}

/* Detector Grid */
.detector-grid {
  margin-top: var(--space-3xl);
}

.detector-grid h3 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.detector-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.detector-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.detector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

.detector-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.detector-card.active {
  border-color: var(--primary);
}

.detector-card.available {
  opacity: 0.7;
  border-style: dashed;
}

.detector-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.detector-card h4 {
  margin-bottom: var(--space-sm);
  font-size: var(--font-lg);
}

.detector-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.test-count {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--font-sm);
}

.badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.badge.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.badge.available {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

.detector-desc {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.4;
}

/* ============================================
   12. Footer
   ============================================ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-xs);
}

.footer-section a {
  color: var(--text-secondary);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* ============================================
   12. Responsive Design
   ============================================ */

@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: var(--space-lg);
    transform: translateX(-100%);
    transition: transform var(--transition);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Hero */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Scanner */
  .scanner-container {
    grid-template-columns: 1fr;
  }

  /* OWASP Grid */
  .owasp-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Smaller padding on mobile */
  .container {
    padding: 0 var(--space-md);
  }

  /* Stack hero stats vertically on very small screens */
  .hero-stats {
    grid-template-columns: 1fr;
  }

  /* Adjust card padding */
  .card,
  .config-panel,
  .results-panel {
    padding: var(--space-lg);
  }
}

/* ============================================
   13. Loading States
   ============================================ */

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

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

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    rgba(255, 255, 255, 0.05) 50%,
    var(--bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   14. Accessibility Improvements
   ============================================ */

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

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--bg-primary);
  padding: var(--space-sm) var(--space-md);
  z-index: 100;
  text-decoration: none;
}

.skip-to-content:focus {
  top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: #00ffff;
    --text-secondary: #cccccc;
    --border: rgba(255, 255, 255, 0.3);
  }
}

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

/* Vulnerability Display Styles */
.vulnerability-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.vulnerability-item.critical {
  border-left: 4px solid var(--danger);
}

.vulnerability-item.high {
  border-left: 4px solid var(--warning);
}

.vulnerability-item.medium {
  border-left: 4px solid var(--info);
}

.vulnerability-item.low {
  border-left: 4px solid var(--success);
}

.vuln-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.vuln-type {
  font-weight: 600;
  font-size: 1.1rem;
}

.vuln-severity {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

.vuln-owasp,
.vuln-cwe {
  padding: 0.25rem 0.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-left: var(--space-xs);
}

.vuln-summary {
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.vuln-description {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.vuln-evidence {
  background: var(--bg-tertiary);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  margin: var(--space-sm) 0;
  font-family: var(--font-mono);
}

.vuln-impact {
  color: var(--warning);
  margin: var(--space-sm) 0;
  font-weight: 500;
}

.vuln-mitigations ul {
  margin-top: var(--space-xs);
  padding-left: 1.5rem;
}

.vuln-testing,
.vuln-monitoring {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

/* Code Sample Tabs */
.code-samples {
  margin-top: var(--space-md);
}

.code-tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.tab-button {
  padding: var(--space-sm) var(--space-md);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  border-right: 1px solid var(--border);
}

.tab-button:last-child {
  border-right: none;
}

.tab-button:hover {
  background: var(--bg-secondary);
}

.tab-button.active {
  background: var(--bg-primary);
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.tab-content {
  display: none;
  max-height: 500px;
  overflow-y: auto;
}

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

.tab-content pre {
  margin: 0;
  padding: var(--space-md);
  background: var(--bg-primary);
}

.tab-content code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Demo Mode Toggle Styles */
.mode-toggle-container {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.mode-toggle {
    display: inline-block;
    position: relative;
    width: 200px;
    height: 40px;
    cursor: pointer;
}

.mode-toggle input {
    display: none;
}

.mode-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    transition: 0.4s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mode-toggle input:not(:checked) + .mode-slider {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.mode-text {
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 14px;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.mode-description {
    margin-top: 15px;
    color: #888;
    font-size: 14px;
    line-height: 1.5;
}

.mode-description strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* Disabled input styling for demo mode */
.config-panel input:disabled,
.config-panel select:disabled,
.config-panel textarea:disabled {
    background: rgba(100, 100, 100, 0.1);
    opacity: 0.6;
    cursor: not-allowed;
}

.config-panel input:disabled::placeholder {
    color: #888;
    font-style: italic;
}

/* Print styles */
@media print {
  .nav-premium,
  .footer,
  .btn,
  .scanner {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}