/* =========================================================
   THREATHAWK
   LOG ANALYSIS
   CSS PART 1 OF 3
========================================================= */

:root{

/* Background */

--background:#060b13;
--background-secondary:#0b1421;
--background-tertiary:#111c2d;

/* Surfaces */

--surface:#101a2b;
--surface-secondary:#162234;
--surface-tertiary:#1d2c41;
--surface-transparent:rgba(16,26,43,.88);

/* Orange Theme */

--accent:#ff8c1a;
--accent-bright:#ffab47;
--accent-dark:#d96d00;

--accent-soft:rgba(255,140,26,.12);

--accent-shadow:
0 16px 40px rgba(255,140,26,.22);

/* Threat Colors */

--success:#22c55e;
--warning:#f59e0b;
--danger:#ef4444;

--success-soft:rgba(34,197,94,.12);
--warning-soft:rgba(245,158,11,.12);
--danger-soft:rgba(239,68,68,.12);

/* Text */

--text-primary:#ffffff;
--text-secondary:#cbd5e1;
--text-muted:#94a3b8;
--text-subtle:#64748b;

/* Borders */

--border:#243347;
--border-strong:#324861;
--border-accent:rgba(255,140,26,.25);

/* Radius */

--radius-small:12px;
--radius-medium:16px;
--radius-large:22px;
--radius-extra-large:30px;

/* Shadows */

--shadow-small:
0 10px 28px rgba(0,0,0,.18);

--shadow-large:
0 28px 60px rgba(0,0,0,.28);

/* Animation */

--transition:.25s ease;

}

html{

scroll-behavior:smooth;

}

*{

margin:0;
padding:0;
box-sizing:border-box;

}

body{

font-family:
Inter,
Segoe UI,
Arial,
sans-serif;

background:var(--background);

color:var(--text-primary);

line-height:1.7;

overflow-x:hidden;

position:relative;

}

/* Background Glow */

body::before{

content:"";

position:fixed;

top:-280px;
right:-220px;

width:700px;
height:700px;

background:
radial-gradient(circle,
rgba(255,140,26,.15),
transparent 70%);

pointer-events:none;

z-index:-2;

}

body::after{

content:"";

position:fixed;

left:-280px;
bottom:-260px;

width:620px;
height:620px;

background:
radial-gradient(circle,
rgba(255,140,26,.08),
transparent 72%);

pointer-events:none;

z-index:-2;

}

.module-container{

width:min(1280px,92%);

margin:auto;

}

/* =========================================================
NAVIGATION
========================================================= */

.site-header{

position:sticky;

top:0;

z-index:1000;

backdrop-filter:blur(18px);

background:
rgba(6,11,19,.84);

border-bottom:
1px solid var(--border);

}

.navbar{

display:flex;

justify-content:space-between;

align-items:center;

min-height:84px;

gap:28px;

}

.brand{

display:flex;

align-items:center;

gap:12px;

text-decoration:none;

color:white;

font-size:22px;
font-weight:800;

}

.brand-symbol{

width:42px;
height:42px;

display:flex;

align-items:center;
justify-content:center;

border-radius:14px;

background:
linear-gradient(
135deg,
var(--accent),
var(--accent-bright)
);

color:#08111f;

font-weight:900;

font-size:20px;

box-shadow:
var(--accent-shadow);

}

.nav-links{

display:flex;

align-items:center;

gap:8px;

}

.nav-links a{

position:relative;

padding:10px 14px;

text-decoration:none;

color:var(--text-secondary);

font-size:14px;
font-weight:700;

border-radius:10px;

transition:
background var(--transition),
color var(--transition);

}

.nav-links a:hover{

background:
rgba(255,255,255,.05);

color:white;

}

.nav-links a.active{

color:var(--accent-bright);

}

.nav-links a.active::after{

content:"";

position:absolute;

left:12px;
right:12px;
bottom:4px;

height:2px;

border-radius:999px;

background:var(--accent);

}

.nav-actions{

display:flex;

align-items:center;

gap:14px;

}

.version-badge{

padding:8px 14px;

background:
rgba(255,140,26,.10);

border:
1px solid var(--border-accent);

border-radius:999px;

color:var(--accent-bright);

font-size:11px;
font-weight:800;

letter-spacing:.08em;

text-transform:uppercase;

}

/* Theme */

.theme-toggle{

display:flex;

align-items:center;

gap:10px;

height:46px;

padding:0 18px;

background:
var(--surface);

border:
1px solid var(--border);

border-radius:14px;

cursor:pointer;

color:var(--text-secondary);

font-weight:700;

transition:
all var(--transition);

}

.theme-toggle:hover{

border-color:
var(--border-accent);

color:white;

transform:translateY(-2px);

}

/* =========================================================
MODULE HEADER
========================================================= */

.module-header{

padding:80px 0 54px;

}

.breadcrumb{

display:flex;

align-items:center;

gap:10px;

font-size:13px;

color:var(--text-muted);

}

.breadcrumb a{

color:var(--accent-bright);

text-decoration:none;

}

.module-heading{

margin-top:30px;

display:flex;

justify-content:space-between;

align-items:flex-start;

gap:40px;

}

.module-heading-content{

max-width:760px;

}

.eyebrow{

display:inline-flex;

align-items:center;

gap:8px;

padding:7px 14px;

background:
rgba(255,140,26,.12);

border:
1px solid var(--border-accent);

border-radius:999px;

color:var(--accent-bright);

font-size:11px;
font-weight:800;

letter-spacing:.08em;

text-transform:uppercase;

}

.module-heading h1{

margin-top:22px;

font-size:62px;

line-height:1.05;

letter-spacing:-.04em;

}

.module-description{

margin-top:20px;

max-width:700px;

font-size:18px;

color:var(--text-secondary);

line-height:1.8;

}

.module-status{

display:flex;

align-items:center;

gap:14px;

padding:18px 22px;

background:
var(--surface);

border:
1px solid var(--border);

border-radius:20px;

min-width:220px;

}

.status-dot{

width:14px;
height:14px;

border-radius:50%;

background:var(--success);

box-shadow:
0 0 18px rgba(34,197,94,.55);

}

.module-status small{

display:block;

color:var(--text-muted);

font-size:11px;

text-transform:uppercase;

letter-spacing:.08em;

}

.module-status strong{

display:block;

margin-top:3px;

font-size:16px;

}

/* =========================================================
COMMON BUTTONS
========================================================= */

.primary-button,
.secondary-button{

display:inline-flex;

align-items:center;

justify-content:center;

gap:10px;

min-height:54px;

padding:0 24px;

border-radius:16px;

font-size:14px;
font-weight:800;

cursor:pointer;

transition:
all var(--transition);

}

.primary-button{

background:
linear-gradient(
135deg,
var(--accent),
var(--accent-bright)
);

color:#08111f;

border:none;

box-shadow:
var(--accent-shadow);

}

.primary-button:hover{

transform:translateY(-3px);

}

.secondary-button{

background:
var(--surface);

color:var(--text-secondary);

border:
1px solid var(--border);

}

.secondary-button:hover{

border-color:
var(--border-accent);

color:white;

transform:translateY(-3px);

}

/* =========================================================
   THREATHAWK LOG ANALYSIS
   CSS PART 2 OF 3

   Includes:
   - Analyzer workspace
   - Drag-and-drop zone
   - Selected file panel
   - Processing progress
   - Threat score sphere
   - Incident summary
   - Statistics cards
========================================================= */


/* =========================================================
   10. ANALYZER SECTION
========================================================= */

.analyzer-section {
    padding: 18px 0 22px;
}

.analyzer-workspace {
    padding: 34px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 28, 45, 0.97),
            rgba(8, 15, 25, 0.97)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius-extra-large);

    box-shadow: var(--shadow-large);

    position: relative;
    overflow: hidden;
}

.analyzer-workspace::before {
    content: "";

    position: absolute;
    top: -180px;
    right: -150px;

    width: 420px;
    height: 420px;

    background:
        radial-gradient(
            circle,
            rgba(255, 140, 26, 0.12),
            transparent 70%
        );

    pointer-events: none;
}

.workspace-heading {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 28px;
}

.workspace-heading > div:first-child {
    max-width: 760px;
}

.panel-label {
    color: var(--accent-bright);

    font-size: 11px;
    font-weight: 800;

    line-height: 1.3;

    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.workspace-heading h2 {
    margin-top: 8px;

    font-size:
        clamp(28px, 4vw, 38px);

    line-height: 1.15;

    letter-spacing: -0.035em;
}

.workspace-heading p {
    margin-top: 12px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.75;
}

.analysis-badge {
    padding: 8px 12px;

    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    gap: 8px;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   11. DROP ZONE
========================================================= */

.drop-zone {
    position: relative;

    margin-top: 30px;
    padding: 48px 28px;

    overflow: hidden;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(255, 140, 26, 0.05),
            rgba(8, 15, 25, 0.72)
        );

    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-large);

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.drop-zone::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 140, 26, 0.1),
            transparent 58%
        );

    opacity: 0;

    transition: opacity var(--transition);
}

.drop-zone:hover,
.drop-zone:focus-visible {
    border-color: var(--accent);

    background:
        linear-gradient(
            145deg,
            rgba(255, 140, 26, 0.1),
            rgba(10, 18, 29, 0.88)
        );

    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 140, 26, 0.08);

    transform: translateY(-2px);
}

.drop-zone:hover::before,
.drop-zone:focus-visible::before {
    opacity: 1;
}

.drop-zone.is-dragging {
    border-color: var(--accent-bright);

    background: var(--accent-soft);

    box-shadow:
        0 0 0 5px rgba(255, 140, 26, 0.08),
        0 0 34px rgba(255, 140, 26, 0.14);

    transform: scale(1.01);
}

.drop-zone.is-processing {
    pointer-events: none;
    opacity: 0.7;
}

.drop-zone-icon {
    position: relative;
    z-index: 1;

    width: 76px;
    height: 76px;

    margin: 0 auto 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 20px;

    font-size: 28px;

    box-shadow:
        0 0 28px rgba(255, 140, 26, 0.1);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.drop-zone:hover .drop-zone-icon,
.drop-zone.is-dragging .drop-zone-icon {
    transform: translateY(-5px) rotate(-2deg);

    box-shadow:
        0 0 34px rgba(255, 140, 26, 0.2);
}

.drop-zone h3 {
    position: relative;
    z-index: 1;

    font-size: 23px;

    letter-spacing: -0.025em;
}

.drop-zone p {
    position: relative;
    z-index: 1;

    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 13px;
}

.supported-files {
    position: relative;
    z-index: 1;

    margin-top: 14px;
    padding: 7px 12px;

    display: inline-flex;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.09em;
}


/* =========================================================
   12. SELECTED FILE PANEL
========================================================= */

.selected-file-panel {
    margin-top: 16px;
    padding: 14px 16px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: var(--surface-secondary);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.selected-file-panel:hover {
    background: var(--surface-tertiary);

    border-color: var(--border-accent);

    transform: translateX(2px);
}

.selected-file-panel.empty-file {
    color: var(--text-muted);
}

.selected-file-icon {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 12px;

    font-size: 15px;
}

.selected-file-content {
    min-width: 0;

    display: grid;

    gap: 3px;
}

.selected-file-content span {
    color: var(--text-muted);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.selected-file-content strong {
    overflow: hidden;

    color: var(--text-primary);

    font-size: 13px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   13. WORKSPACE ACTIONS
========================================================= */

.workspace-actions {
    margin-top: 18px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.file-label {
    cursor: pointer;
}


/* =========================================================
   14. PROCESSING PANEL
========================================================= */

.processing-panel {
    margin-top: 22px;
    padding: 18px;

    background:
        rgba(255, 140, 26, 0.055);

    border: 1px solid var(--border-accent);
    border-radius: var(--radius-medium);
}

.processing-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

.processing-heading > div {
    display: grid;

    gap: 4px;
}

.processing-heading strong {
    color: var(--text-primary);

    font-size: 13px;
}

#processingPercent {
    color: var(--accent-bright);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 13px;
    font-weight: 800;
}

.processing-track {
    position: relative;

    height: 12px;

    margin-top: 14px;

    overflow: hidden;

    background: var(--surface-secondary);

    border: 1px solid var(--border);
    border-radius: 999px;
}

.processing-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--accent-dark),
            var(--accent),
            var(--accent-bright)
        );

    box-shadow:
        0 0 20px rgba(255, 140, 26, 0.28);

    transition: width 0.45s ease;
}

.loading-message {
    min-height: 20px;

    margin-top: 10px;

    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   15. THREAT OVERVIEW
========================================================= */

.threat-overview-section {
    padding: 58px 0 20px;
}

.threat-overview-grid {
    display: grid;

    grid-template-columns:
        minmax(300px, 0.82fr)
        minmax(0, 1.45fr);

    gap: 22px;
}

.threat-score-panel,
.incident-summary-panel {
    padding: 30px;

    background: var(--surface-transparent);

    border: 1px solid var(--border);
    border-radius: var(--radius-extra-large);

    box-shadow: var(--shadow-large);
}

.panel-heading h2 {
    margin-top: 7px;

    font-size: 29px;

    line-height: 1.18;

    letter-spacing: -0.035em;
}

.panel-heading p {
    margin-top: 10px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.72;
}


/* =========================================================
   16. THREAT SCORE SPHERE
========================================================= */

.threat-score-panel {
    display: flex;
    flex-direction: column;
}

.threat-sphere {
    position: relative;

    width: 250px;
    height: 250px;

    margin: 34px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    isolation: isolate;
}

.threat-sphere::before {
    content: "";

    position: absolute;
    inset: 20px;
    z-index: -2;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 255, 255, 0.13),
            transparent 24%
        ),
        radial-gradient(
            circle,
            rgba(255, 140, 26, 0.2),
            rgba(255, 140, 26, 0.055) 58%,
            transparent 72%
        );

    border:
        1px solid rgba(255, 140, 26, 0.28);

    box-shadow:
        inset 0 0 34px rgba(255, 140, 26, 0.14),
        0 0 42px rgba(255, 140, 26, 0.15);

    animation:
        spherePulse 3.6s ease-in-out infinite;
}

.threat-sphere::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -3;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 140, 26, 0.15),
            transparent 68%
        );

    filter: blur(10px);
}

.sphere-orbit {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.orbit-one {
    inset: 8px;

    border:
        1px solid rgba(255, 140, 26, 0.34);

    border-top-color: transparent;
    border-left-color: rgba(255, 171, 71, 0.7);

    animation:
        sphereRotate 8s linear infinite;
}

.orbit-two {
    inset: 0;

    border:
        1px dashed rgba(255, 140, 26, 0.22);

    border-right-color: transparent;

    animation:
        sphereRotateReverse 12s linear infinite;
}

.sphere-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.sphere-score {
    color: var(--accent-bright);

    font-size: 68px;
    font-weight: 900;

    line-height: 0.95;

    letter-spacing: -0.055em;

    text-shadow:
        0 0 22px rgba(255, 140, 26, 0.38);
}

.sphere-core small {
    margin-top: 6px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;
}

.sphere-core strong {
    margin-top: 12px;
    padding: 7px 11px;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 999px;

    font-size: 10px;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.threat-score-caption {
    margin-top: 20px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 800;

    text-align: center;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}


/* Sphere state colors */

.threat-sphere.threat-low-state {
    --sphere-state: #22c55e;
}

.threat-sphere.threat-medium-state {
    --sphere-state: #eab308;
}

.threat-sphere.threat-high-state {
    --sphere-state: #f97316;
}

.threat-sphere.threat-critical-state {
    --sphere-state: #ef4444;
}

.threat-sphere.threat-low-state::before,
.threat-sphere.threat-medium-state::before,
.threat-sphere.threat-high-state::before,
.threat-sphere.threat-critical-state::before {
    border-color:
        color-mix(
            in srgb,
            var(--sphere-state) 42%,
            transparent
        );

    box-shadow:
        inset 0 0 34px
        color-mix(
            in srgb,
            var(--sphere-state) 18%,
            transparent
        ),
        0 0 42px
        color-mix(
            in srgb,
            var(--sphere-state) 18%,
            transparent
        );
}

.threat-sphere.threat-low-state .sphere-score,
.threat-sphere.threat-low-state .sphere-core strong,
.threat-sphere.threat-medium-state .sphere-score,
.threat-sphere.threat-medium-state .sphere-core strong,
.threat-sphere.threat-high-state .sphere-score,
.threat-sphere.threat-high-state .sphere-core strong,
.threat-sphere.threat-critical-state .sphere-score,
.threat-sphere.threat-critical-state .sphere-core strong {
    color: var(--sphere-state);
}


/* =========================================================
   17. INCIDENT SUMMARY
========================================================= */

.incident-summary-panel {
    min-height: 100%;
}

.incident-summary-content {
    margin-top: 24px;
    padding: 20px;

    color: var(--text-secondary);

    background: var(--surface-secondary);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    font-size: 14px;

    line-height: 1.78;
}

.recommendations-content {
    margin-top: 18px;
}

.recommendation-list {
    display: grid;

    gap: 10px;

    list-style: none;
}

.recommendation-list li {
    position: relative;

    padding: 13px 14px 13px 42px;

    color: var(--text-secondary);

    background:
        rgba(34, 197, 94, 0.055);

    border:
        1px solid rgba(34, 197, 94, 0.16);

    border-radius: var(--radius-small);

    font-size: 13px;

    line-height: 1.6;
}

.recommendation-list li::before {
    content: "✓";

    position: absolute;
    top: 12px;
    left: 15px;

    width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--success);

    background: var(--success-soft);

    border-radius: 50%;

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   18. STATISTICS
========================================================= */

.statistics-section {
    padding: 58px 0 20px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;
}

.section-heading > div {
    max-width: 720px;
}

.section-heading h2 {
    margin-top: 7px;

    font-size:
        clamp(28px, 4vw, 40px);

    line-height: 1.15;

    letter-spacing: -0.035em;
}

.section-heading > p {
    max-width: 470px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.7;
}

.compact-heading {
    margin-bottom: 24px;
}

.statistics-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.stat-card {
    min-height: 142px;
    padding: 22px;

    display: flex;
    align-items: center;

    gap: 16px;

    background: var(--surface-transparent);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.stat-card:hover {
    background: var(--surface-secondary);

    border-color: var(--border-accent);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.18),
        0 0 24px rgba(255, 140, 26, 0.055);

    transform: translateY(-4px);
}

.stat-icon {
    width: 50px;
    height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 15px;

    font-size: 18px;
}

.stat-content {
    display: grid;
}

.stat-content span {
    color: var(--text-muted);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.stat-value {
    margin-top: 5px;

    color: var(--text-primary);

    font-size: 35px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: -0.04em;
}

.stat-critical .stat-icon,
.stat-critical .stat-value {
    color: var(--danger);
}

.stat-ip .stat-icon,
.stat-ip .stat-value {
    color: var(--warning);
}

.stat-login .stat-icon,
.stat-login .stat-value {
    color: #fb923c;
}

.stat-value.updated {
    animation:
        statPop 0.35s ease;
}


/* =========================================================
   19. PART 2 ANIMATIONS
========================================================= */

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

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

@keyframes spherePulse {
    0%,
    100% {
        transform: scale(1);

        opacity: 0.9;
    }

    50% {
        transform: scale(1.035);

        opacity: 1;
    }
}

@keyframes statPop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}


/* =========================================================
   20. PART 2 RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .threat-overview-grid {
        grid-template-columns: 1fr;
    }

    .statistics-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .analyzer-workspace,
    .threat-score-panel,
    .incident-summary-panel {
        padding: 23px;
    }

    .workspace-heading,
    .processing-heading,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .analysis-badge {
        align-self: flex-start;
    }

    .workspace-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .threat-sphere {
        width: 220px;
        height: 220px;
    }

    .sphere-score {
        font-size: 58px;
    }
}

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

    .drop-zone {
        padding: 36px 18px;
    }

    .stat-card {
        min-height: 110px;
    }
}

/* =========================================================
   THREATHAWK LOG ANALYSIS
   CSS PART 3 OF 3

   Includes:
   - Activity chart and alerts
   - Attack timeline
   - IOC intelligence
   - Event table
   - Report panel
   - Information cards
   - Toast
   - Footer
   - Light mode
   - Accessibility
   - Final responsive rules
========================================================= */


/* =========================================================
   21. ACTIVITY SECTION
========================================================= */

.activity-section {
    padding: 58px 0 20px;
}

.activity-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(320px, 0.75fr);

    gap: 22px;
}

.chart-panel,
.alert-panel-wrapper {
    padding: 30px;

    background: var(--surface-transparent);

    border: 1px solid var(--border);
    border-radius: var(--radius-extra-large);

    box-shadow: var(--shadow-large);
}

.chart-wrapper {
    position: relative;

    min-height: 350px;

    margin-top: 24px;
    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--surface-secondary);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);
}

#eventChart {
    width: 100% !important;
    max-height: 320px;
}

.alert-panel {
    max-height: 420px;

    margin-top: 24px;

    display: grid;

    gap: 12px;

    overflow-y: auto;
}

.alert-item {
    padding: 16px;

    display: flex;
    align-items: flex-start;

    gap: 13px;

    color: var(--text-secondary);

    background: var(--surface-secondary);

    border: 1px solid var(--border);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-medium);

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.alert-item:hover {
    background: var(--surface-tertiary);

    border-color: rgba(239, 68, 68, 0.35);

    transform: translateX(3px);
}

.alert-item::before {
    content: "!";

    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--danger);

    background: var(--danger-soft);

    border-radius: 10px;

    font-size: 13px;
    font-weight: 900;
}


/* =========================================================
   22. EMPTY STATES
========================================================= */

.empty-state,
.timeline-empty-state,
.table-empty-state {
    min-height: 210px;

    padding: 36px 20px;

    display: grid;
    justify-items: center;
    align-content: center;

    gap: 10px;

    color: var(--text-muted);

    text-align: center;
}

.empty-state-icon {
    width: 58px;
    height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 17px;

    font-size: 21px;
}

.empty-state strong,
.timeline-empty-state strong,
.table-empty-state strong {
    color: var(--text-secondary);

    font-size: 14px;
}

.empty-state p,
.timeline-empty-state p,
.table-empty-state p {
    max-width: 420px;

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   23. ATTACK TIMELINE
========================================================= */

.timeline-section {
    padding: 58px 0 20px;
}

.timeline-panel {
    padding: 30px;

    background: var(--surface-transparent);

    border: 1px solid var(--border);
    border-radius: var(--radius-extra-large);

    box-shadow: var(--shadow-large);
}

.attack-timeline {
    position: relative;

    margin-top: 28px;
    padding-left: 34px;

    display: grid;

    gap: 18px;
}

.attack-timeline::before {
    content: "";

    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 13px;

    width: 2px;

    background:
        linear-gradient(
            to bottom,
            var(--accent),
            rgba(255, 140, 26, 0.15)
        );
}

.timeline-item {
    position: relative;

    padding: 16px 18px;

    background: var(--surface-secondary);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.timeline-item:hover {
    background: var(--surface-tertiary);

    border-color: var(--border-accent);

    transform: translateX(4px);
}

.timeline-item::before {
    content: "";

    position: absolute;
    top: 21px;
    left: -28px;

    width: 12px;
    height: 12px;

    background: var(--accent);

    border: 3px solid var(--background);
    border-radius: 50%;

    box-shadow:
        0 0 0 4px rgba(255, 140, 26, 0.11),
        0 0 18px rgba(255, 140, 26, 0.35);
}

.timeline-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.timeline-item time {
    color: var(--accent-bright);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 11px;
    font-weight: 800;
}

.timeline-item strong {
    color: var(--text-primary);

    font-size: 14px;
}

.timeline-item p {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.65;
}


/* =========================================================
   24. IOC INTELLIGENCE
========================================================= */

.ioc-section {
    padding: 58px 0 20px;
}

.ioc-panel {
    padding: 30px;

    background: var(--surface-transparent);

    border: 1px solid var(--border);
    border-radius: var(--radius-extra-large);

    box-shadow: var(--shadow-large);
}

.ioc-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 26px;
}

.ioc-heading h2 {
    margin-top: 7px;

    font-size: 29px;

    letter-spacing: -0.035em;
}

.ioc-heading p {
    margin-top: 10px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}

.ioc-count-badge,
.event-count-badge {
    padding: 8px 12px;

    flex-shrink: 0;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ioc-list {
    margin-top: 26px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.ioc-item {
    min-width: 0;
    padding: 18px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    background: var(--surface-secondary);

    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-medium);

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.ioc-item:hover {
    background: var(--surface-tertiary);

    border-color: var(--border-accent);

    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.15);

    transform: translateY(-3px);
}

.ioc-item > div:first-child {
    min-width: 0;
}

.ioc-item strong,
.malicious-ip {
    display: block;

    color: var(--text-primary);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 14px;

    overflow-wrap: anywhere;
}

.ioc-item p,
.ioc-item span:not(.ioc-badge) {
    margin-top: 6px;

    color: var(--text-muted);

    font-size: 11px;
}

.ioc-badge {
    padding: 7px 10px;

    flex-shrink: 0;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   25. EVENTS TABLE
========================================================= */

.events-section {
    padding: 58px 0 20px;
}

.table-panel {
    padding: 30px;

    background: var(--surface-transparent);

    border: 1px solid var(--border);
    border-radius: var(--radius-extra-large);

    box-shadow: var(--shadow-large);
}

.table-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 26px;
}

.table-heading h2 {
    margin-top: 7px;

    font-size: 29px;

    letter-spacing: -0.035em;
}

.table-heading p {
    margin-top: 10px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}

.table-controls {
    margin-top: 24px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.search-wrapper {
    position: relative;

    flex: 1;
}

.search-wrapper i {
    position: absolute;
    top: 50%;
    left: 15px;

    color: var(--text-muted);

    font-size: 13px;

    pointer-events: none;

    transform: translateY(-50%);
}

#searchInput,
#severityFilter {
    min-height: 46px;

    color: var(--text-primary);

    background: var(--background-secondary);

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    outline: none;

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

#searchInput {
    width: 100%;

    padding: 0 15px 0 42px;
}

#severityFilter {
    min-width: 180px;

    padding: 0 13px;

    cursor: pointer;
}

#searchInput::placeholder {
    color: var(--text-subtle);
}

#searchInput:focus,
#severityFilter:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 4px rgba(255, 140, 26, 0.1);
}

.table-wrapper {
    width: 100%;

    margin-top: 18px;

    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
}

table {
    width: 100%;
    min-width: 820px;

    border-collapse: collapse;

    background: var(--background-secondary);
}

thead {
    background: var(--surface-secondary);
}

th,
td {
    padding: 15px 14px;

    text-align: left;

    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.09em;
}

td {
    color: var(--text-secondary);

    font-size: 12px;

    vertical-align: middle;
}

tbody tr {
    transition:
        background var(--transition);
}

tbody tr:hover {
    background:
        rgba(255, 140, 26, 0.045);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.warning-row {
    background:
        rgba(245, 158, 11, 0.055);
}

.warning-row td:nth-child(2),
.warning-text {
    color: var(--warning);

    font-weight: 800;
}

.info-text {
    color: #38bdf8;

    font-weight: 800;
}

.empty-row td {
    padding: 0;
}


/* =========================================================
   26. REPORT PANEL
========================================================= */

.report-section {
    padding: 58px 0 20px;
}

.report-panel {
    padding: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 140, 26, 0.07),
            var(--surface-transparent)
        );

    border: 1px solid var(--border-accent);
    border-radius: var(--radius-extra-large);

    box-shadow: var(--shadow-large);
}

.report-content {
    display: flex;
    align-items: center;

    gap: 18px;
}

.report-icon {
    width: 58px;
    height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 17px;

    font-size: 21px;
}

.report-content h2 {
    margin-top: 6px;

    font-size: 27px;

    letter-spacing: -0.03em;
}

.report-content p {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}

.export-button {
    min-height: 50px;
    padding: 0 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    gap: 9px;

    color: #08111f;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-bright)
        );

    border: 0;
    border-radius: var(--radius-medium);

    box-shadow: var(--accent-shadow);

    cursor: pointer;

    font-size: 13px;
    font-weight: 800;

    transition:
        box-shadow var(--transition),
        transform var(--transition);
}

.export-button:hover {
    box-shadow:
        0 20px 44px rgba(255, 140, 26, 0.3);

    transform: translateY(-2px);
}


/* =========================================================
   27. INFORMATION CARDS
========================================================= */

.information-section {
    padding: 58px 0 10px;
}

.information-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.information-card {
    min-height: 220px;

    padding: 24px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    background: var(--surface-transparent);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);

    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.information-card:hover {
    background: var(--surface-secondary);

    border-color: var(--border-accent);

    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.18),
        0 0 24px rgba(255, 140, 26, 0.05);

    transform: translateY(-4px);
}

.information-icon {
    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border: 1px solid var(--border-accent);
    border-radius: 14px;

    font-size: 18px;
}

.information-card h3 {
    margin-top: 20px;

    font-size: 18px;

    letter-spacing: -0.02em;
}

.information-card p {
    margin-top: 12px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.72;
}


/* =========================================================
   28. TOAST
========================================================= */

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;

    z-index: 1500;

    min-width: 240px;
    max-width: calc(100vw - 48px);

    min-height: 52px;

    padding: 12px 16px;

    display: flex;
    align-items: center;

    gap: 11px;

    color: var(--text-primary);

    background: var(--surface-tertiary);

    border: 1px solid var(--border-accent);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-large);

    opacity: 0;
    visibility: hidden;

    transform: translateY(18px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}

.toast.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.toast i {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #08111f;

    background: var(--accent);

    border-radius: 8px;

    font-size: 11px;
}

.toast span {
    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   29. FOOTER
========================================================= */

.site-footer {
    margin-top: 110px;

    padding: 42px 0;

    background:
        rgba(3, 7, 13, 0.9);

    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;

    grid-template-columns:
        1fr auto auto;

    align-items: center;

    gap: 42px;
}

.footer-brand {
    display: grid;

    line-height: 1.35;
}

.footer-brand strong {
    color: var(--accent-bright);

    font-size: 19px;

    letter-spacing: -0.025em;
}

.footer-brand span {
    margin-top: 4px;

    color: var(--text-muted);

    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 18px;
}

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

    font-size: 12px;
    font-weight: 650;

    text-decoration: none;

    transition:
        color var(--transition);
}

.footer-links a:hover {
    color: var(--accent-bright);
}

.footer-meta {
    color: var(--text-muted);

    font-size: 10px;

    text-align: right;
}


/* =========================================================
   30. LIGHT MODE
========================================================= */

body.light-mode {
    --background: #f8f5f1;
    --background-secondary: #fffaf5;
    --background-tertiary: #f1e9df;

    --surface: #ffffff;
    --surface-secondary: #fbf7f2;
    --surface-tertiary: #f4ece3;
    --surface-transparent: rgba(255, 255, 255, 0.94);

    --text-primary: #20170f;
    --text-secondary: #5e5044;
    --text-muted: #7c6e62;
    --text-subtle: #9a8e83;

    --border: rgba(78, 55, 36, 0.13);
    --border-strong: rgba(78, 55, 36, 0.23);
}

body.light-mode .site-header {
    background:
        rgba(248, 245, 241, 0.91);
}

body.light-mode .site-footer {
    background:
        rgba(242, 234, 224, 0.92);
}

body.light-mode .analyzer-workspace,
body.light-mode .threat-score-panel,
body.light-mode .incident-summary-panel,
body.light-mode .stat-card,
body.light-mode .chart-panel,
body.light-mode .alert-panel-wrapper,
body.light-mode .timeline-panel,
body.light-mode .ioc-panel,
body.light-mode .table-panel,
body.light-mode .report-panel,
body.light-mode .information-card {
    background:
        rgba(255, 255, 255, 0.95);
}

body.light-mode .drop-zone,
body.light-mode .selected-file-panel,
body.light-mode .incident-summary-content,
body.light-mode .chart-wrapper,
body.light-mode .alert-item,
body.light-mode .timeline-item,
body.light-mode .ioc-item,
body.light-mode table {
    background:
        rgba(78, 55, 36, 0.025);
}

body.light-mode thead {
    background:
        #f4ece3;
}

body.light-mode #searchInput,
body.light-mode #severityFilter {
    color: var(--text-primary);

    background: #ffffff;
}

body.light-mode .toast {
    background: #ffffff;
}


/* =========================================================
   31. ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.drop-zone:focus-visible {
    outline: 2px solid var(--accent);

    outline-offset: 3px;
}

button:disabled {
    cursor: not-allowed;

    opacity: 0.55;

    box-shadow: none !important;
    transform: none !important;
}


/* =========================================================
   32. FINAL RESPONSIVE RULES
========================================================= */

@media (max-width: 1100px) {
    .nav-links a:nth-child(3),
    .nav-links a:nth-child(4) {
        display: none;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .ioc-list {
        grid-template-columns: 1fr;
    }

    .information-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .information-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .navbar {
        min-height: 72px;

        gap: 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
    }

    .version-badge {
        display: none;
    }

    .theme-toggle span {
        display: none;
    }

    .theme-toggle {
        width: 42px;
        padding: 0;
    }

    .module-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .module-status {
        min-width: 0;
    }

    .ioc-heading,
    .table-heading,
    .report-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-content {
        align-items: flex-start;
    }

    .export-button {
        width: 100%;
    }

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

    #severityFilter {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;

        justify-items: start;

        gap: 24px;
    }

    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 650px) {
    .module-container {
        width:
            min(
                calc(100% - 28px),
                1280px
            );
    }

    .module-heading h1 {
        font-size:
            clamp(40px, 13vw, 54px);
    }

    .module-description {
        font-size: 15px;
    }

    .chart-panel,
    .alert-panel-wrapper,
    .timeline-panel,
    .ioc-panel,
    .table-panel,
    .report-panel {
        padding: 22px;
    }

    .information-grid {
        grid-template-columns: 1fr;
    }

    .information-card:last-child {
        grid-column: auto;
    }

    .report-content {
        flex-direction: column;
    }

    .toast {
        right: 14px;
        bottom: 14px;
        left: 14px;

        min-width: 0;
        max-width: none;
    }

    .site-footer {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .module-header {
        padding:
            54px 0 38px;
    }

    .chart-wrapper {
        min-height: 280px;

        padding: 10px;
    }

    .timeline-item-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;
    }

    .ioc-item {
        flex-direction: column;
    }

    .ioc-badge {
        align-self: flex-start;
    }
}


/* =========================================================
   33. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   34. PRINT
========================================================= */

@media print {
    body {
        color: #000;
        background: #fff;
    }

    body::before,
    body::after,
    .site-header,
    .site-footer,
    .toast,
    .theme-toggle,
    .analyzer-section,
    .report-section,
    .information-section {
        display: none !important;
    }

    .threat-score-panel,
    .incident-summary-panel,
    .stat-card,
    .chart-panel,
    .alert-panel-wrapper,
    .timeline-panel,
    .ioc-panel,
    .table-panel {
        color: #000;
        background: #fff;

        border: 1px solid #999;

        box-shadow: none;
    }
}