/* ==========================================================================
   CAJUN CORNER - SİBER GÜVENLİK, DDOS & TEHDİT ANALİZ PANELİ (SOC DASHBOARD)
   Modern, Dark Mode, Multi-Chart SOC Design System
   ========================================================================== */

:root {
  /* Renk Paleti - Slate & Cyber SOC */
  --bg-primary: #080c14;
  --bg-secondary: #0f1623;
  --bg-card: #141c2c;
  --bg-card-hover: #1a253a;
  --bg-input: #0b101a;
  --border-color: #223047;
  --border-subtle: #192437;
  
  /* Vurgu Renkleri */
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --color-primary: #0ea5e9;       /* Cyber Blue */
  --color-primary-glow: rgba(14, 165, 233, 0.15);
  --color-teal: #14b8a6;          /* Teal */
  --color-teal-glow: rgba(20, 184, 166, 0.15);
  --color-emerald: #10b981;       /* Safe / Active */
  --color-emerald-glow: rgba(16, 185, 129, 0.15);
  --color-amber: #f59e0b;         /* Warning / Moderate */
  --color-amber-glow: rgba(245, 158, 11, 0.15);
  --color-rose: #ef4444;          /* Blocked / Threat */
  --color-rose-glow: rgba(239, 68, 68, 0.2);
  
  /* Tipografi & Boşluklar */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.8);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 60px;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Üst Menü / Header
   ========================================================================== */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-rose);
  box-shadow: 0 0 15px var(--color-rose-glow);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title span.domain-tag {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  background: rgba(14, 165, 233, 0.12);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 165, 233, 0.25);
  font-weight: 500;
}

.brand-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.header-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-emerald);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: #0284c7;
  box-shadow: 0 0 15px var(--color-primary-glow);
}

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

.btn-teal {
  background: rgba(20, 184, 166, 0.15);
  color: var(--color-teal);
  border-color: rgba(20, 184, 166, 0.4);
}
.btn-teal:hover {
  background: rgba(20, 184, 166, 0.25);
}

/* ==========================================================================
   Hızlı Bilgi Bandı
   ========================================================================== */
.alert-banner {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.08));
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
  padding: 10px 0;
  font-size: 0.85rem;
}

.alert-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.alert-item strong {
  color: #fff;
}

/* ==========================================================================
   KPI Metrik Kartları
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: #3b5071;
  background: var(--bg-card-hover);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
}

.metric-card.card-rose::before { background: var(--color-rose); }
.metric-card.card-emerald::before { background: var(--color-emerald); }
.metric-card.card-amber::before { background: var(--color-amber); }
.metric-card.card-teal::before { background: var(--color-teal); }

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}

.card-rose .metric-icon { color: var(--color-rose); background: var(--color-rose-glow); }
.card-emerald .metric-icon { color: var(--color-emerald); background: var(--color-emerald-glow); }
.card-amber .metric-icon { color: var(--color-amber); background: var(--color-amber-glow); }
.card-teal .metric-icon { color: var(--color-teal); background: var(--color-teal-glow); }

.metric-value-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.badge-rose {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.metric-breakdown {
  display: flex;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.metric-breakdown span strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Grafik Alanları (Multi-Chart Section Layout)
   ========================================================================== */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-subtitle {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Filtre / Tab Kontrolleri */
.filter-group {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.active {
  background: var(--color-rose);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.chart-wrapper {
  position: relative;
  height: 330px;
  width: 100%;
}

.chart-wrapper-compact {
  position: relative;
  height: 270px;
  width: 100%;
}

/* Çoklu Grafik Grid Düzeni (3 Kolonlu) */
.charts-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .charts-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   2 Kolonlu Analiz Izgarası
   ========================================================================== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

/* Ülke Dağılımı Listesi */
.country-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.country-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.country-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.country-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.country-flag {
  font-size: 1.2rem;
}

.country-stats {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-muted);
}

.country-stats strong {
  color: #fff;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-rose), var(--color-amber));
  border-radius: 999px;
  transition: width 0.6s ease-in-out;
}

/* Saldırı Vektörleri */
.vector-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vector-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vector-path {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 500;
}

.vector-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.vector-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ==========================================================================
   Engellenen IP Adresleri Tablosu
   ========================================================================== */
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 12px 8px 36px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.data-table th {
  background: #0f172a;
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ip-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ip-tag {
  color: #38bdf8;
}

.block-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ==========================================================================
   Canlı Log Akışı Konsolu (SOC Live Stream)
   ========================================================================== */
.terminal-card {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.terminal-header {
  background: #0f172a;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-body {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-row {
  display: grid;
  grid-template-columns: 80px 140px 140px 1fr 100px;
  gap: 12px;
  align-items: center;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
  border-left: 3px solid var(--color-rose);
}

.log-time { color: var(--text-dim); }
.log-ip { color: #38bdf8; font-weight: 600; }
.log-target { color: #f59e0b; }
.log-rule { color: var(--text-muted); font-size: 0.75rem; }
.log-status {
  text-align: right;
  font-weight: 700;
  color: var(--color-rose);
}

/* ==========================================================================
   Yönetici Özeti / Müşteri Raporu Kartı
   ========================================================================== */
.executive-card {
  background: linear-gradient(135deg, #161e2e 0%, #0d1422 100%);
  border: 1px solid #2e3e58;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.executive-title-wrap {
  margin-bottom: 18px;
}

.executive-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.summary-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 800px) {
  .summary-points {
    grid-template-columns: 1fr;
  }
}

.point-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.point-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.point-box.highlights h4 { color: var(--color-rose); }
.point-box.actions h4 { color: var(--color-emerald); }

.point-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.point-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}

.point-list li strong {
  color: #fff;
  font-weight: 700;
}

.point-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-emerald);
  font-weight: bold;
}

/* ==========================================================================
   Modallar (SSH Log Ekleme & IP Intel)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

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

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-textarea {
  width: 100%;
  height: 140px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  resize: vertical;
  outline: none;
}

.form-textarea:focus {
  border-color: var(--color-primary);
}

.code-snippet {
  background: #0f172a;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  cursor: pointer;
}

.code-snippet:hover {
  background: #1e293b;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Mobil Uyumluluk & Responsive Medya Sorguları (100% Mobile Friendly)
   ========================================================================== */

@media (max-width: 960px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .charts-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  .site-header {
    padding: 12px 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand-section {
    width: 100%;
  }

  .brand-title {
    font-size: 1.1rem;
    flex-wrap: wrap;
  }

  .header-status-badge {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    padding: 6px 10px;
    text-align: center;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .btn {
    padding: 8px 6px;
    font-size: 0.75rem;
    justify-content: center;
  }

  .btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .alert-banner {
    font-size: 0.75rem;
    padding: 8px 0;
  }

  .alert-banner .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-value {
    font-size: 1.7rem;
  }

  .metric-breakdown {
    flex-direction: column;
    gap: 4px;
  }

  .section-card {
    padding: 16px 12px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-group {
    width: 100%;
    justify-content: space-between;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 0.75rem;
  }

  .chart-wrapper {
    height: 250px;
  }

  .chart-wrapper-compact {
    height: 220px;
  }

  .table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-input-wrap {
    width: 100%;
    min-width: unset;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .data-table th, .data-table td {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .executive-card {
    padding: 18px 14px;
  }

  .summary-points {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-content {
    padding: 16px;
    max-width: 95vw;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .header-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .log-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.72rem;
    padding: 8px;
  }

  .log-status {
    text-align: left;
  }
}

/* ==========================================================================
   Yazdırma / PDF Formatı (@media print)
   ========================================================================== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  .site-header, .header-actions, .filter-group, .table-controls, .btn, .modal-backdrop {
    display: none !important;
  }
  .metric-card, .section-card, .executive-card, .point-box {
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .metric-value, .brand-title, .section-title, .executive-title {
    color: #000 !important;
  }
  .data-table th {
    background: #f0f0f0 !important;
    color: #000 !important;
  }
  .data-table td {
    color: #000 !important;
    border-bottom: 1px solid #ddd !important;
  }
}
