@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
/* styles.css - Version: 2025-08-12-r-icons-unified */

/* Root Theme */
*{box-sizing:border-box}
:root{
  --bg1:#0f1425;--bg2:#121e30;--grad-accent:linear-gradient(90deg,#60a5fa 0%,#8b5cf6 45%,#10b981 90%);
  --panel:rgba(26,36,52,0.9);--panel-border:rgba(120,140,170,.18);--radius:20px;
  --text-soft:#9ca3af;--focus:#93c5fd;--accentA:#3b82f6;--accentB:#8b5cf6;--accentC:#10b981;
  --shadow:0 6px 18px -6px rgba(0,0,0,.55);
}
body{
  margin:0;
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  background:
    radial-gradient(circle at 70% 20%,rgba(96,165,250,.08),transparent 60%),
    radial-gradient(circle at 25% 75%,rgba(16,185,129,.07),transparent 65%),
    linear-gradient(160deg,var(--bg1),var(--bg2));
  color:#e5e7eb;
  -webkit-font-smoothing:antialiased;
}
.container{max-width:1200px;margin:0 auto;padding:0 24px 48px}

/* Hero */
.hero{padding:48px 20px 8px;display:flex;justify-content:center}
.hero-inner{max-width:860px;width:100%;text-align:center;display:flex;flex-direction:column;align-items:center;padding:0 8px}
.hero-title{margin:0 0 .75rem;display:flex;flex-direction:column;align-items:center;gap:.65rem}
.hero-brand{font-weight:800;line-height:1.05;letter-spacing:.4px;font-size:clamp(2.2rem,5.2vw,3rem);background:var(--grad-accent);-webkit-background-clip:text;background-clip:text;color:transparent;text-wrap:balance}
.hero-subtitle{font-weight:600;letter-spacing:.32em;font-size:clamp(.68rem,1.25vw,.85rem);text-transform:uppercase;color:#cdd5de;opacity:.92}
.hero-tagline{margin:.25rem auto 1.2rem;font-size:clamp(.78rem,.95vw,.95rem);font-weight:500;letter-spacing:.04em;line-height:1.45;color:var(--text-soft);max-width:760px;text-wrap:balance}
.hero-inner::after{content:"";width:130px;height:4px;background:linear-gradient(90deg,rgba(96,165,250,.15),rgba(139,92,246,.7),rgba(16,185,129,.15));border-radius:4px;margin-top:.4rem}

/* Main Card & Inputs */
.main-card{background:var(--panel);border:1px solid var(--panel-border);border-radius:var(--radius);padding:26px 26px 32px;box-shadow:var(--shadow);backdrop-filter:blur(6px);margin-top:8px;position:relative;overflow:hidden}
.main-card::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--accentA),var(--accentB),var(--accentC));border-radius:var(--radius) var(--radius) 0 0}
.input-section{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:22px}
.input-group{flex:1;min-width:210px}
.input-group label{display:block;font-size:.66rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;margin:0 0 6px;color:#f3f4f6;opacity:.85}
.input-group input,.input-group select{width:100%;padding:11px 12px;border-radius:12px;border:2px solid rgba(148,163,184,.28);background:rgba(17,27,43,.85);color:#f1f5f9;font-size:.92rem;font-weight:500;transition:border-color .18s,background .18s,box-shadow .18s}
.input-group input:focus,.input-group select:focus{outline:none;border-color:var(--accentA);background:#132135;box-shadow:0 0 0 2px rgba(96,165,250,.25)}
.stack-opts{margin-top:8px;display:flex;flex-direction:column;gap:4px;font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;opacity:.75}

/* Buttons */
.tool-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(156px,1fr));gap:12px;margin-top:4px}
.btn{padding:13px 14px;border:none;border-radius:14px;cursor:pointer;font-weight:700;font-size:.74rem;letter-spacing:.045em;position:relative;overflow:hidden;color:#fff;background:#334155;transition:background .25s,transform .18s,box-shadow .25s;isolation:isolate;display:inline-flex;align-items:center;gap:6px;justify-content:center;line-height:1.1}
.btn-ico{display:inline-flex;align-items:center;justify-content:center;font-size:1.05rem;line-height:1}
.btn .btn-label{white-space:nowrap}
.btn:before{content:"";position:absolute;inset:0;background:linear-gradient(145deg,rgba(255,255,255,.18),transparent 65%);mix-blend-mode:overlay;opacity:.42;pointer-events:none}
.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 9px 18px -9px rgba(0,0,0,.55)}
.btn:active:not(:disabled){transform:translateY(0)}
.btn:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn-primary{background:linear-gradient(140deg,#3b82f6,#06b6d4)}
.btn-secondary{background:linear-gradient(140deg,#475569,#334155)}
.btn-warning{background:linear-gradient(140deg,#f59e0b,#d97706)}
.btn-tertiary{background:linear-gradient(140deg,#0ea5e9,#2563eb)}
.btn-mini{padding:6px 11px;font-size:.62rem;border-radius:8px;background:linear-gradient(145deg,#3b82f6,#8b5cf6);letter-spacing:.1em;font-weight:600}
.btn-mini .btn-ico{font-size:.85rem}

/* Clear bar */
.clear-bar{margin:22px 0 6px;text-align:center;display:flex;justify-content:center}
.clear-bar .btn-clear-alone{min-width:220px;font-size:.78rem;letter-spacing:.08em;background:linear-gradient(140deg,#475569,#334155)}
.clear-bar .btn-clear-alone:hover:not(:disabled){background:linear-gradient(140deg,#64748b,#475569)}

/* Results cards */
.results{margin-top:28px}
.result-card{background:linear-gradient(145deg,rgba(30,41,59,.94),rgba(15,23,42,.94));border:1px solid var(--panel-border);border-radius:18px;padding:20px 20px 24px;margin-bottom:20px;box-shadow:var(--shadow);position:relative;overflow:hidden;animation:fadeInUp 0.5s ease-out}
.result-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#3b82f6,#8b5cf6,#10b981);border-radius:18px 18px 0 0}
.result-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px -6px rgba(0,0,0,.6);transition:transform 0.3s ease, box-shadow 0.3s ease}
.result-card h3{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;color:var(--accentA);font-size:1.02rem;letter-spacing:.02em}
.header-actions{display:flex;align-items:center;gap:6px}
.result-content{background:rgba(15,23,42,.80);border-left:4px solid var(--accentA);border-radius:14px;padding:16px 18px;overflow:auto;position:relative}
.result-content::before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(to bottom, var(--accentA), var(--accentB), var(--accentC));border-radius:0 4px 4px 0}

/* Metrics / Sections */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:16px 0;animation:fadeInGrid 0.6s ease-out}
@keyframes fadeInGrid {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.grid-compact{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.metric-card{background:linear-gradient(135deg,rgba(59,130,246,.11),rgba(139,92,246,.11));border:1px solid rgba(59,130,246,.3);border-radius:14px;padding:12px;position:relative;overflow:hidden}
.metric-card:before{content:"";position:absolute;inset:0;background:linear-gradient(145deg,var(--metric-accent,#60a5fa)10%,transparent 65%);opacity:.09}
.metric-card .metric-title{font-size:10px;letter-spacing:.55px;text-transform:uppercase;opacity:.8;margin-bottom:3px}
.metric-card .metric-value{font-size:20px;font-weight:800;color:var(--metric-accent,#60a5fa);line-height:1}
.metric-card .metric-sub{font-size:11px;opacity:.75;margin-top:4px}
.metric-card:hover{transform:scale(1.02);box-shadow:0 8px 16px -4px rgba(59,130,246,.3);transition:transform 0.3s ease, box-shadow 0.3s ease}
.metric-card .metric-value{transition:color 0.3s ease}

/* Tables */
.table-wrap{overflow:auto}
.table{width:100%;border-collapse:collapse;font-size:13px}
.table th,.table td{border-bottom:1px solid #253344;padding:8px 9px;text-align:left;vertical-align:top;transition:background-color 0.2s ease}
.table tr:hover td{background-color:rgba(59,130,246,0.05)}
.table thead th{background:#0b1220;color:#93c5fd;position:sticky;top:0;z-index:1;font-weight:600}
.table tr:nth-child(even) td{background:rgba(2,6,23,.35)}
.pre-inline{white-space:pre-wrap;font-family:'JetBrains Mono','Fira Code',monospace;font-size:12px}

/* Badges */
.badge{display:inline-block;padding:4px 12px;border-radius:9999px;font-size:11px;font-weight:700;border:1px solid transparent;line-height:1.3;letter-spacing:.05em;transition:transform 0.2s ease, box-shadow 0.2s ease}
.badge:hover{transform:scale(1.05);box-shadow:0 4px 8px -2px rgba(0,0,0,.3)}
.badge.good{background:rgba(16,185,129,.16);color:var(--accentC);border-color:rgba(16,185,129,.4);box-shadow:0 0 0 0 rgba(16,185,129,.4);animation:pulseGood 2s infinite}
@keyframes pulseGood {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  70% { box-shadow: 0 0 0 4px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.badge.warn{background:rgba(245,158,11,.16);color:#fbbf24;border-color:rgba(245,158,11,.4)}
.badge.bad{background:rgba(239,68,68,.16);color:#ef4444;border-color:rgba(239,68,68,.42)}

/* Charts */
.charts-row{display:flex;flex-wrap:wrap;gap:20px;margin:18px 0 8px;animation:slideInCharts 0.7s ease-out}
@keyframes slideInCharts {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.chart-container{background:rgba(15,23,42,.82);border-radius:18px;padding:18px 20px;border:1px solid rgba(100,116,139,0.28);flex:1;min-width:260px;position:relative;box-shadow:0 2px 10px -2px rgba(0,0,0,.45);transition:transform 0.3s ease, box-shadow 0.3s ease}
.chart-container:hover{transform:translateY(-2px);box-shadow:0 8px 20px -4px rgba(0,0,0,.6)}
.chart-container.narrow{flex:0 0 260px}
.chart-container.wide{flex:2 1 520px}
.chart-caption{text-align:center;font-size:12px;margin-top:8px;opacity:.75;letter-spacing:.5px}
.chart-container canvas{width:100%!important;height:auto!important}

/* Misc / Notes */
.note{padding:11px 14px;border-radius:12px;border:1px dashed #334155;background:#0f172a;margin:12px 0;font-size:13px;line-height:1.45}
.loading{background:linear-gradient(135deg,rgba(59,130,246,.12),rgba(139,92,246,.12));border:1px solid rgba(59,130,246,.28);border-radius:16px;text-align:center;padding:24px;position:relative;overflow:hidden}
.loading::before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(59,130,246,.1),transparent);animation:shimmer 1.5s infinite}
.error{color:#fecaca;background:linear-gradient(135deg,rgba(239,68,68,.22),rgba(220,38,38,.15));border:1px solid rgba(239,68,68,.35);border-radius:14px;padding:14px;margin:16px 0;font-size:14px;line-height:1.45}
code{background:#1e293b;padding:4px 7px;border-radius:6px;font-size:12px}
.ok-msg{font-size:12px;color:#10b981;font-weight:600;padding:4px 0}

/* Footer */
.footer{text-align:center;color:#cbd5e1;opacity:.82;margin:46px 0 28px;display:flex;flex-direction:column;align-items:center;clear:both}
.footer p{margin:6px 0 0;font-size:.78rem;letter-spacing:.08em}
.status-footer{display:flex;justify-content:center;margin-bottom:10px}

/* Mini key-value */
.mini-kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin:4px 0 14px}
.mini-kv-row{background:#0c1526;border:1px solid #1f2b3b;border-radius:10px;padding:7px 10px;font-size:12px;display:flex;justify-content:space-between;gap:8px;line-height:1.25}
.mini-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin:4px 0 6px;color:#93c5fd;opacity:.9}

/* Domain Health */
.domain-health-loading{font-size:13px;opacity:.8}
.dh-header{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.dh-title-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dh-title{margin:0;font-size:1.05rem;color:#93c5fd}
.dh-generated{font-size:11px;opacity:.7}
.health-grade-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:.75rem;font-weight:700;letter-spacing:.6px}
.grade-A,.grade-A+{background:rgba(16,185,129,.22);color:#10b981}
.grade-B{background:rgba(59,130,246,.22);color:#3b82f6}
.grade-C{background:rgba(245,158,11,.22);color:#f59e0b}
.grade-D{background:rgba(249,115,22,.22);color:#f97316}
.grade-F{background:rgba(239,68,68,.22);color:#ef4444}
.domain-health-section{background:#0f172a;border:1px solid #2d3b53;border-radius:14px;padding:14px 16px;margin-top:14px;flex:1;min-width:240px}
.domain-health-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.55px;color:#93c5fd;margin:0 0 10px}
.dh-issues-list{margin:0;padding-left:18px;font-size:12.5px;line-height:1.4}
.dh-issues-list li{margin:2px 0}

/* SSL */
.ssl-section{margin-top:14px}
.proto-badge{display:inline-block;padding:4px 10px;border-radius:8px;font-size:11px;font-weight:600;background:#334155;color:#e2e8f0}
.proto-badge.good{background:rgba(16,185,129,.25);color:#10b981}
.proto-badge.bad{background:rgba(239,68,68,.25);color:#ef4444}
.proto-badge.warn{background:rgba(245,158,11,.25);color:#f59e0b}
.ssl-san-list,.ssl-warn-list{margin:6px 0 0;padding-left:18px;font-size:12px;line-height:1.35}
.ssl-san-list li,.ssl-warn-list li{margin:2px 0}

/* SPF / DMARC / DKIM */
.spf-mech-wrap{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.spf-mech-badge{background:#1e293b;border:1px solid #334155;color:#e2e8f0;font-size:10.5px;padding:4px 9px;border-radius:999px;font-weight:600;letter-spacing:.4px}
.spf-summary,.dmarc-summary{display:flex;flex-direction:column}
.warn-list{margin:4px 0 0;padding-left:18px;font-size:12px;line-height:1.35}
.warn-inline{color:#f59e0b;font-size:11px;font-weight:600}
.dkim-table td,.dkim-table th{font-size:11.5px}
.blacklist-summary .mini-kv{margin-bottom:12px}
.spf-empty,.dmarc-empty,.dkim-empty{font-size:12.5px;opacity:.75}

/* WHOIS */
.whois-report-extended{display:flex;flex-direction:column;gap:18px}
.whois-section{background:#0f172a;border:1px solid #223040;border-radius:14px;padding:14px 16px}
.whois-section-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.55px;color:#93c5fd;margin:0 0 10px}
.whois-status-badges{display:flex;flex-wrap:wrap;gap:6px}
.whois-status-badge{display:inline-block;padding:4px 10px;border-radius:10px;font-size:11px;font-weight:600;background:#1e293b;border:1px solid #334155;color:#e2e8f0}
.whois-status-badge.ok{background:rgba(16,185,129,.2);border-color:rgba(16,185,129,.45);color:#10b981}
.whois-status-badge.warn{background:rgba(245,158,11,.2);border-color:rgba(245,158,11,.45);color:#f59e0b}
.whois-status-badge.critical{background:rgba(239,68,68,.22);border-color:rgba(239,68,68,.45);color:#ef4444}
.whois-status-badge.protect{background:rgba(96,165,250,.22);border-color:rgba(96,165,250,.45);color:#60a5fa}
.whois-status-badge.info{background:rgba(148,163,184,.18);border-color:rgba(148,163,184,.4);color:#cbd5e1}
.whois-contacts{display:flex;flex-wrap:wrap;gap:18px}
.whois-contact{flex:1 1 240px;min-width:240px;background:#0c1526;border:1px solid #1f2b3b;border-radius:12px;padding:10px 12px}
.whois-contact-title{font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;margin:0 0 8px;color:#93c5fd}
.whois-kv{display:flex;flex-direction:column;gap:4px}
.whois-kv-row{display:flex;justify-content:space-between;font-size:12px;gap:8px;background:#0a192b;padding:6px 8px;border:1px solid #1e2d44;border-radius:8px}
.whois-abuse{background:#0c1526;border:1px solid #1f2b3b;border-radius:12px;padding:12px}
.whois-abuse-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#f59e0b;margin:0 0 8px}
.whois-legend{font-size:12px;margin-top:8px}
.whois-legend-list{margin:6px 0 0;padding-left:18px;font-size:11.5px;line-height:1.35}
.whois-actions-inline{margin-top:4px}
.whois-ns-table td,.whois-ns-table th{font-size:12px}
.hdr-raw{max-height:420px;overflow:auto;font-size:11.5px;line-height:1.3;background:#08101d;border:1px solid #1e2d44;padding:12px;border-radius:8px}

/* SMTP / Network */
.smtp-transcript-table td,.smtp-transcript-table th{font-size:12px;vertical-align:top}
.smtp-transcript-table pre{margin:0;max-width:380px;white-space:pre-wrap;word-break:break-word}

/* Header Decoder Specific */
.header-decoder-body .hero{padding:40px 16px 4px}
.header-decoder-card{background:var(--panel);border:1px solid var(--panel-border);border-radius:18px;padding:24px 26px;box-shadow:var(--shadow)}
.decoder-inputs{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:18px}
.hd-group{flex:1 1 260px;display:flex;flex-direction:column}
.hd-group.full{flex-basis:100%}
.hd-group label{font-size:.6rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;margin:0 0 6px}
#hd-raw{min-height:260px;resize:vertical;font-family:'JetBrains Mono','Fira Code',monospace;background:#0c1626;color:#f1f5f9;border:2px solid #1e2d44;border-radius:12px;padding:12px;font-size:.75rem;line-height:1.35}
#hd-raw:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.25)}
.decoder-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:14px}
.pdf-buttons{display:flex;gap:8px}
#hd-results .table{font-size:12px}
.header-report-root{display:flex;flex-direction:column;gap:18px}
.hdr-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.hdr-metric{background:#0a1728;border:1px solid #1f2e45;border-radius:10px;padding:8px 9px;display:flex;flex-direction:column;gap:4px}
.hdr-metric-label{font-size:10px;text-transform:uppercase;letter-spacing:.55px;opacity:.75;font-weight:600}
.hdr-metric-value{font-size:12.5px;font-weight:600;word-break:break-word;line-height:1.2}
.hdr-section{background:#0f172a;border:1px solid #223040;border-radius:14px;padding:14px 16px}
.hdr-section-title{font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#93c5fd;margin:0 0 8px}
.hdr-badge{display:inline-block;padding:3px 8px;font-size:10px;border-radius:999px;font-weight:700;letter-spacing:.5px;background:#334155;color:#e2e8f0;margin:0 2px 2px 0}
.hdr-badge.good{background:rgba(16,185,129,.18);color:#10b981}
.hdr-badge.warn{background:rgba(245,158,11,.22);color:#f59e0b}
.hdr-badge.bad{background:rgba(239,68,68,.22);color:#ef4444}
.hdr-strip-success{background:linear-gradient(145deg,rgba(16,185,129,.25),rgba(59,130,246,.25));border:1px solid #214458;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:600;letter-spacing:.4px}
.hdr-raw-actions{display:flex;justify-content:flex-end;margin:-4px 0 8px}
.hdr-raw-actions .btn-mini{background:linear-gradient(145deg,#334155,#1e293b)}
.hdr-hop-table td,.hdr-hop-table th{font-size:11.5px}
.delay-badge{display:inline-block;padding:3px 6px;border-radius:8px;font-size:10px;font-weight:600;letter-spacing:.4px;background:#334155}
.delay-badge.ok{background:rgba(16,185,129,.25);color:#10b981}
.delay-badge.mid{background:rgba(245,158,11,.25);color:#f59e0b}
.delay-badge.bad{background:rgba(239,68,68,.25);color:#ef4444}
.hop-bar{height:5px;background:#132235;border-radius:4px;margin:4px 0 0;overflow:hidden}
.hop-bar-fill{height:100%;background:linear-gradient(90deg,#3b82f6,#8b5cf6)}
.hdr-reference,.hdr-total-time{font-size:12px;font-weight:600;letter-spacing:.4px;margin:4px 0}
.hdr-list{margin:4px 0 0;padding-left:18px;font-size:12px;line-height:1.35}
.hdr-list li{margin:2px 0}
.warn-text{color:#fbbf24}

/* Print */
@media print {
  body{background:#fff!important;color:#000}
  .result-card,.main-card,.domain-health-section,.ssl-section,.whois-section,.hdr-section,.hdr-metric{background:#fff!important;box-shadow:none!important}
  .health-grade-badge,.badge,.proto-badge,.whois-status-badge,.hdr-badge{box-shadow:none!important}
  .btn,.clear-bar,.tool-buttons{display:none!important}
}

/* Responsive */
@media (max-width:860px){.hero-brand{font-size:clamp(2.1rem,6vw,2.6rem)}}
@media (max-width:640px){
  .hero{padding:40px 14px 4px}
  .tool-buttons{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
  .metric-card .metric-value{font-size:19px}
  .smtp-transcript-table pre{max-width:220px}
  .whois-contacts{flex-direction:column}
  .decoder-actions{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  .hero-inner::after{animation:none}
}

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

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Domain Health Status Styling */
.domain-health-status {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  margin: 10px 0;
  text-align: center;
}

.domain-health-status.status-good {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.domain-health-status.status-issues {
  background: rgba(245, 101, 101, 0.1);
  color: #ef4444;
  border: 1px solid rgba(245, 101, 101, 0.3);
}

/* Suggestions List Styling */
.dh-suggestions-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.suggestion-item {
  padding: 8px 12px;
  margin: 4px 0;
  background: rgba(59, 130, 246, 0.05);
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  color: #374151;
}

.suggestion-item:before {
  content: "💡 ";
  margin-right: 8px;
}

/* Enhanced Charts */
.chart-container {
  margin: 15px 0;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.chart-caption {
  text-align: center;
  font-weight: 600;
  color: #475569;
  margin-top: 10px;
  font-size: 14px;
}



/* WHOIS / ARIN report styles */
.whois-dl{ display:grid; grid-template-columns: 220px 1fr; gap:6px 12px; align-items:start; margin:10px 0; }
.whois-dl dt{ font-weight:700; color:#93c5fd; font-size:0.92rem; }
.whois-dl dd{ margin:0 0 6px 0; color:#e6eef8; word-break:break-word; }
.whois-section{ margin:12px 0; padding:10px; background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:8px; border:1px solid rgba(255,255,255,0.03); }
.whois-section h4{ margin:0 0 8px 0; color:#a5b4fc; }
.btn-copy{ margin-left:10px; padding:4px 8px; font-size:0.82rem; border-radius:6px; background:#334155; color:#e6eef8; border:1px solid #475569; cursor:pointer; }
/* Chart fixes */ 
.chart-container { 
}
.chart-container canvas { 
}
.chart-section { 
  margin-bottom: 20px; 
  border-bottom: 1px solid #334155; 
  padding-bottom: 15px; 
}
.raw-data-section { 
  margin-top: 15px; 
}
.raw-data-section h4 { 
  color: #94a3b8; 
  margin-bottom: 10px; 
}

/* Enhanced inline results styling */
.card {
    background: linear-gradient(145deg, rgba(30,41,59,.94), rgba(15,23,42,.94));
    border: 1px solid #334155;
    border-radius: 18px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 16px -4px rgba(0,0,0,.4);
    animation: fadeInUp 0.5s ease-out;
}

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

.card.error {
    border-left: 4px solid #ef4444;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.card-content {
    color: #e2e8f0;
}

.stats-summary {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0 15px 0;
    color: #6ee7b7;
    font-size: 0.9rem;
}

.chart-container {
    background: rgba(15,23,42,.80);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
    height: 250px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(15,23,42,.80);
    border-radius: 8px;
    overflow: hidden;
}

.results-table th {
    background: rgba(51, 65, 85, 0.8);
    color: #f1f5f9;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #334155;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.results-table tr:hover {
    background: rgba(51, 65, 85, 0.3);
}

.status-success {
    color: #10b981;
    font-weight: 500;
}

.command-output, .json-output {
    background: rgba(15,23,42,.80);
    color: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 10px 0;
    border: 1px solid #334155;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    animation: progressSlide 2s infinite;
}

@keyframes progressSlide {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

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

/* Enhanced formatting for structured reports */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #10b981;
}

.metric-value {
    font-weight: 600;
    color: #3b82f6;
}

.high-jitter {
    color: #ef4444 !important;
}

.low-jitter {
    color: #10b981 !important;
}

.quality-good {
    color: #10b981 !important;
}

.quality-fair {
    color: #f59e0b !important;
}

.quality-poor {
    color: #ef4444 !important;
}

.table-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
}

.data-visualization h4,
.whois-report h4,
.dns-report h4,
.ssl-report h4,
.traceroute-report h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f1f5f9;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-container canvas {
    background: rgba(15,23,42,.60);
    border-radius: 8px;
}

/* Enhanced animations for better UX */
.card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

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

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

.results-table tr:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}

/* Status indicators */
.status-success {
    color: #10b981;
    font-weight: 600;
}

.status-warning {
    color: #f59e0b;
    font-weight: 600;
}

.status-error {
    color: #ef4444;
    font-weight: 600;
}

/* MOS Report Styles */
.mos-report .recommendation {
    margin: 15px 0;
    padding: 10px;
    background-color: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.mos-report .recommendation h5 {
    margin-bottom: 8px;
    color: #0056b3;
}

/* Traceroute Report Styles */
.traceroute-report .results-table {
    margin: 15px 0;
}

.traceroute-report .results-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.traceroute-report .results-table td:last-child {
    text-align: right;
}

/* ARIN Report Styles */
.arin-report .network-details,
.arin-report .contact-info {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.arin-report .network-details h5,
.arin-report .contact-info h5 {
    margin-bottom: 10px;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

/* SSL Report Styles */
.ssl-report .security-grade {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 10px;
}

.ssl-report .grade-a { background-color: #28a745; color: white; }
.ssl-report .grade-b { background-color: #ffc107; color: #212529; }
.ssl-report .grade-c { background-color: #fd7e14; color: white; }
.ssl-report .grade-d { background-color: #dc3545; color: white; }
.ssl-report .grade-f { background-color: #6c757d; color: white; }

.ssl-report .certificate-details,
.ssl-report .san-domains,
.ssl-report .protocols-section,
.ssl-report .warnings {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.ssl-report .protocols-table {
    width: 100%;
    margin-top: 10px;
}

.ssl-report .protocols-table td:last-child {
    text-align: center;
}

.ssl-report .status-ok {
    color: #28a745;
    font-weight: bold;
}

.ssl-report .status-fail {
    color: #dc3545;
    font-weight: bold;
}

.ssl-report .warnings {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.ssl-report .stat-value.warning {
    color: #dc3545;
    font-weight: bold;
}

.ssl-report .san-domains ul {
    list-style-type: none;
    padding-left: 0;
}

.ssl-report .san-domains li {
    padding: 2px 0;
    font-family: monospace;
}

/* Improved SSL Report Styling for Better Readability */
.ssl-report .certificate-details,
.ssl-report .san-domains,
.ssl-report .protocols-section,
.ssl-report .warnings {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border: 1px solid #4a5568;
}

.ssl-report .certificate-details h5,
.ssl-report .san-domains h5,
.ssl-report .protocols-section h5,
.ssl-report .warnings h5 {
    color: #90cdf4 !important;
    border-bottom-color: #4a5568 !important;
}

.ssl-report .certificate-details p,
.ssl-report .san-domains p,
.ssl-report .protocols-section p {
    color: #e2e8f0 !important;
    font-weight: 500;
}

.ssl-report .protocols-table {
    background-color: #1a202c;
    color: #e2e8f0;
    border: 1px solid #4a5568;
}

.ssl-report .protocols-table th {
    background-color: #2d3748 !important;
    color: #90cdf4 !important;
    border-bottom: 2px solid #4a5568;
}

.ssl-report .protocols-table td {
    border-bottom: 1px solid #4a5568;
    color: #e2e8f0 !important;
}

.ssl-report .san-domains ul {
    margin: 10px 0;
}

.ssl-report .san-domains li {
    color: #e2e8f0 !important;
    background-color: #1a202c;
    padding: 5px 10px;
    margin: 2px 0;
    border-radius: 4px;
    border: 1px solid #4a5568;
}

/* Enhanced MOS Report Styling */
.mos-report .stats-summary {
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.mos-report .recommendation {
    background-color: #2b6cb0 !important;
    color: white !important;
    border-left-color: #3182ce !important;
}

.mos-report .recommendation h5 {
    color: #e6fffa !important;
}

.mos-report .recommendation p {
    color: #e6fffa !important;
    font-weight: 500;
}

/* Enhanced Traceroute Report Styling */
.traceroute-report .results-table {
    background-color: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    overflow: hidden;
}

.traceroute-report .results-table th {
    background-color: #2d3748 !important;
    color: #90cdf4 !important;
    border-bottom: 2px solid #4a5568;
    padding: 12px;
}

.traceroute-report .results-table td {
    color: #e2e8f0 !important;
    border-bottom: 1px solid #4a5568;
    padding: 10px 12px;
}

.traceroute-report .results-table tr:hover {
    background-color: #2d3748;
}

/* General Improvements for All Reports */
.stats-summary .stat-item {
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 6px;
    padding: 15px;
}

.stats-summary .stat-label {
    color: #90cdf4 !important;
    font-weight: 600;
}

.stats-summary .stat-value {
    color: #e2e8f0 !important;
    font-weight: 700;
    font-size: 1.1em;
}

/* Chart Container Styling */
.chart-container {
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

/* Error and Warning Styling */
.error {
    background-color: #742a2a !important;
    color: #fed7d7 !important;
    border: 1px solid #e53e3e;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
}

.warning {
    color: #f6ad55 !important;
    font-weight: 700;
}

/* Fix MOS chart size */
.mos-report .chart-container {
    width: 300px !important;
    height: 300px !important;
    margin: 20px auto;
}

.mos-report canvas {
    max-width: 300px !important;
    max-height: 300px !important;
}

/* DMARC Report Styling */
.dmarc-report {
    background: #2a2d3a;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.dmarc-status {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.dmarc-status.configured {
    background: #155724;
    border: 1px solid #c3e6cb;
}

.dmarc-status.not-configured {
    background: #721c24;
    border: 1px solid #f5c6cb;
}

.status-indicator {
    font-size: 18px;
    font-weight: bold;
}

.status-indicator i {
    margin-right: 10px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.policy-item {
    background: #373a47;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.policy-label {
    color: #8e9aaf;
    font-weight: 500;
}

.policy-value {
    color: #ffffff;
    font-weight: bold;
}

.action-reject {
    color: #dc3545;
}

.action-quarantine {
    color: #ffc107;
}

.action-monitor-only {
    color: #28a745;
}

.report-email {
    font-family: monospace;
    font-size: 12px;
    background: #4a4d5a;
    padding: 4px 8px;
    border-radius: 4px;
}

.policy-record {
    background: #1e1e1e;
    color: #e6e6e6;
    padding: 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    border-left: 4px solid #007bff;
}

.dmarc-recommendation {
    background: #856404;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.dmarc-recommendation h5 {
    color: #fff3cd;
    margin-bottom: 10px;
}

.dmarc-recommendation p {
    color: #fff3cd;
    margin: 0;
}

/* SSL Security Grade Styling */
.ssl-grade {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #373a47;
    border-radius: 8px;
    margin: 15px 0;
}

.grade-label {
    color: #8e9aaf;
    font-weight: 500;
}

.grade-value {
    font-size: 24px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 6px;
}

.grade-a\+ {
    background: #28a745;
    color: white;
}

.grade-a {
    background: #28a745;
    color: white;
}

.grade-b {
    background: #ffc107;
    color: black;
}

.grade-c {
    background: #fd7e14;
    color: white;
}

.grade-f {
    background: #dc3545;
    color: white;
}

.protocols-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.protocol-tag {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.protocol-tag.error {
    background: #dc3545;
}

/* Additional SSL/TLS Styling */
.cipher-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.cipher-item {
    background: #373a47;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cipher-name {
    font-family: monospace;
    color: #e6e6e6;
    font-size: 12px;
}

.cipher-bits {
    color: #8e9aaf;
    font-size: 11px;
    background: #4a4d5a;
    padding: 2px 6px;
    border-radius: 3px;
}

.expires-soon {
    color: #ffc107 !important;
    font-weight: bold;
}

.ssl-error {
    background: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    color: #f8d7da;
    margin: 15px 0;
}

.ssl-error i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.grade-aplus {
    background: #155724 !important;
    color: white !important;
}

/* SPF Report Styling */
.spf-report {
    background: #2a2d3a;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.spf-status {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.spf-status.configured {
    background: #155724;
    border: 1px solid #c3e6cb;
}

.spf-status.not-configured {
    background: #721c24;
    border: 1px solid #f5c6cb;
}

.spf-record {
    background: #1e1e1e;
    color: #e6e6e6;
    padding: 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    border-left: 4px solid #28a745;
}

.spf-recommendation {
    background: #856404;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.spf-recommendation h5 {
    color: #fff3cd;
    margin-bottom: 10px;
}

.spf-recommendation p {
    color: #fff3cd;
    margin: 0;
}

/* DKIM Report Styling */
.dkim-report {
    background: #2a2d3a;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.dkim-status {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.dkim-status.valid {
    background: #155724;
    border: 1px solid #c3e6cb;
}

.dkim-status.invalid {
    background: #721c24;
    border: 1px solid #f5c6cb;
}

/* DNSSEC Report Styling */
.dnssec-report {
    background: #2a2d3a;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.dnssec-status {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.dnssec-status.secure {
    background: #155724;
    border: 1px solid #c3e6cb;
}

.dnssec-status.not-secure {
    background: #721c24;
    border: 1px solid #f5c6cb;
}

/* Generic Report Styling */
.generic-report, .whois-report, .arin-report, .dns-report, .mx-report, 
.blacklist-report, .domain-health-report, .email-security-report {
    background: #2a2d3a;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.output-text {
    background: #1e1e1e;
    color: #e6e6e6;
    padding: 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Raw output details styling */
.raw-output details {
    margin: 15px 0;
}

.raw-output summary {
    cursor: pointer;
    padding: 10px;
    background: #373a47;
    border-radius: 4px;
    color: #8e9aaf;
    font-weight: 500;
}

.raw-output summary:hover {
    background: #4a4d5a;
}

/* DNS and MX Report Styling */
.dns-summary, .mx-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #373a47;
    border-radius: 8px;
    overflow: hidden;
}

.results-table thead {
    background: #4a4d5a;
}

.results-table th, 
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2a2d3a;
    color: #e6e6e6;
}

.results-table th {
    font-weight: 600;
    color: #ffffff;
    background: #5a5d6a;
}

.results-table tr:hover {
    background: #4a4d5a;
}

.status-valid {
    color: #28a745;
    font-weight: bold;
}

.status-invalid {
    color: #dc3545;
    font-weight: bold;
}

/* DKIM specific styling */
.dkim-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Footer Fix Override */
.footer {
  text-align: center;
  color: #cbd5e1;
  opacity: 0.82;
  margin: 46px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  clear: both;
}

.status-footer {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  align-items: center;
  gap: 10px;
}

.footer p {
  margin: 15px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* Hide duplicate status links in footer */
.footer .status-footer a:nth-child(3) {
  display: none;
}

.footer .status-footer p {
  display: none;
}

/* Ensure copyright is on its own line */
.footer > p {
  display: block !important;
  margin-top: 15px !important;
}

/* Chart Container Fixes */
canvas {
  max-width: 100% !important;
  height: auto !important;
}

/* Specific chart container constraints */
.results canvas {
  max-width: 100% !important;
}

/* Force chart containers to respect their wrapper size */
div[style*="width: 250px"] canvas {
  max-width: 250px !important;
  max-height: 120px !important;
}

div[style*="width: 400px"] canvas {
  max-width: 400px !important;
  max-height: 200px !important;
}

/* Footer Copyright Fix */
.footer::after {
  content: "";
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 213, 225, 0.2);
}

.footer-copyright {
  display: block !important;
  text-align: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 213, 225, 0.2);
  font-size: 0.78rem;
  opacity: 0.8;
}

.footer-copyright a {
  color: #60a5fa;
  text-decoration: none;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

/* Update Chart Container Sizes */
div[style*="width: 350px"] canvas {
  max-width: 350px !important;
  max-height: 180px !important;
}

div[style*="width: 500px"] canvas {
  max-width: 500px !important;
  max-height: 200px !important;
}

/* Traceroute specific layout fixes */
.results-table {
  margin-bottom: 20px !important;
  width: 100%;
  clear: both;
}

/* Ensure traceroute chart doesn't overlap with table */
.chart-container {
  clear: both !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

/* Reduce chart container padding for traceroute */
.chart-container div[style*="width: 500px"] {
  margin: 10px auto !important;
}

/* Make sure table is fully visible */
.results table {
  margin-bottom: 25px;
  clear: both;
}

/* Update CSS for larger chart sizes */
div[style*="width: 875px"] canvas {
  max-width: 875px !important;
  max-height: 450px !important;
}

div[style*="width: 1250px"] canvas {
  max-width: 1250px !important;
  max-height: 500px !important;
}

/* Ensure large charts are responsive */
.chart-container div[style*="width: 875px"],
.chart-container div[style*="width: 1250px"] {
  max-width: 100%;
  overflow-x: auto;
}

/* Make sure charts don't overflow on smaller screens */
@media (max-width: 1400px) {
  div[style*="width: 1250px"] {
    width: 95vw !important;
    max-width: 1200px !important;
  }
  
  div[style*="width: 1250px"] canvas {
    max-width: 100% !important;
  }
}

@media (max-width: 1000px) {
  div[style*="width: 875px"] {
    width: 90vw !important;
    max-width: 850px !important;
  }
  
  div[style*="width: 875px"] canvas {
    max-width: 100% !important;
  }
}

/* Better spacing for larger charts */
.chart-container {
  margin: 25px auto !important;
  padding: 20px !important;
}

/* Center large charts */
.results .chart-container {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* Ensure tables have good spacing after charts */
.results-table {
  margin-top: 30px !important;
  margin-bottom: 20px !important;
}

h5 {
  margin-top: 25px !important;
  margin-bottom: 15px !important;
}
