/* PF_RING Traffic Flow Visualizer Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

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

.site-header {
  background: #1a1a2e;
  color: white;
  padding: 1rem 0;
  border-bottom: 3px solid #007acc;
}

.nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.nav a {
  color: #eaeaea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: #4da6ff; }

.hero {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-section, .controls-section, .visualization-section, .results-section, .help-section, .examples-section, .faq-section, .assumptions-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 { color: #1a1a2e; margin-bottom: 1rem; font-size: 1.25rem; }

.input-group { margin-bottom: 1rem; }

.input-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }

#pcap-input { width: 100%; padding: 0.75rem; border: 2px dashed #007acc; border-radius: 6px; }

#hex-input { width: 100%; height: 100px; padding: 0.75rem; border: 1px solid #ddd; border-radius: 6px; font-family: monospace; font-size: 0.85rem; resize: vertical; }

.preset-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.preset-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover { background: #e0e0e0; }

.preset-btn.active { background: #007acc; color: white; border-color: #007acc; }

.protocol-checkboxes { display: flex; gap: 1rem; flex-wrap: wrap; }

.protocol-checkboxes label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

.primary-btn { background: #007acc; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; font-weight: 500; }

.primary-btn:hover { background: #005a9e; }

.primary-btn:disabled { background: #666; cursor: not-allowed; }

.secondary-btn { background: #f0f0f0; color: #333; border: 1px solid #ddd; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; }

.secondary-btn:hover { background: #e0e0e0; }

.viz-container { height: 300px; background: #f8f9fa; border-radius: 8px; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }

.viz-placeholder { text-align: center; color: #666; }

.viz-icon { margin-bottom: 1rem; }

.export-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

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

.stat-card { background: #f8f9fa; padding: 1rem; border-radius: 8px; text-align: center; }

.stat-value { font-size: 1.5rem; font-weight: 600; color: #007acc; }

.results-list { background: #f8f9fa; padding: 1rem; border-radius: 8px; margin-top: 1rem; }

.help-grid, .example-cards, .faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

.help-item, .example-card, .faq-item { background: #f8f9fa; padding: 1rem; border-radius: 8px; }

.assumptions-list { list-style: none; padding: 0 1rem; }

.assumptions-list li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }

.note-text { text-align: center; color: #666; margin-top: 1rem; font-size: 0.9rem; }

.site-footer { background: #1a1a2e; color: #4da6ff; padding: 1rem 0; margin-top: 2rem; }

.site-footer a { color: #4da6ff; text-decoration: none; }

@media (max-width: 768px) {
  .nav { flex-direction: column; gap: 0.5rem; }
  .upload-section, .controls-section, .visualization-section, .results-section { padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .export-controls { flex-direction: column; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
