/* =========================================================
   THREATHAWK HASH ANALYZER
   CSS PART 1 OF 3

   Includes:
   - Design system
   - Reset
   - Dark/light theme foundations
   - Global background
   - Shared containers
   - Navigation
   - Module header
   - Footer
========================================================= */


/* =========================================================
   1. DESIGN SYSTEM
========================================================= */

:root {
    /* ThreatHawk platform identity */
    --platform-cyan: #00d4ff;
    --platform-cyan-soft: rgba(0, 212, 255, 0.12);

    /* Hash Analyzer module identity */
    --accent: #8b5cf6;
    --accent-bright: #a78bfa;
    --accent-dark: #6d28d9;

    --accent-soft: rgba(139, 92, 246, 0.1);
    --accent-medium: rgba(139, 92, 246, 0.18);
    --accent-border: rgba(139, 92, 246, 0.3);
    --accent-glow: rgba(139, 92, 246, 0.22);

    /* Backgrounds */
    --background: #050913;
    --background-secondary: #07101b;

    --surface: #0d1726;
    --surface-secondary: #101c2d;
    --surface-tertiary: #142238;
    --surface-elevated: #18263d;

    --surface-transparent: rgba(13, 23, 38, 0.84);
    --surface-light-transparent: rgba(255, 255, 255, 0.035);

    /* Borders */
    --border: rgba(148, 163, 184, 0.15);
    --border-strong: rgba(148, 163, 184, 0.25);
    --border-accent: rgba(139, 92, 246, 0.34);

    /* Text */
    --text-primary: #edf7ff;
    --text-secondary: #a6b5c9;
    --text-muted: #708096;
    --text-subtle: #536277;

    /* Status colors */
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.12);

    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.12);

    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.12);

    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.12);

    /* Layout */
    --container-width: 1240px;
    --header-height: 78px;

    /* Radius */
    --radius-small: 10px;
    --radius-medium: 15px;
    --radius-large: 22px;
    --radius-extra-large: 28px;

    /* Shadows */
    --shadow-small:
        0 10px 28px rgba(0, 0, 0, 0.18);

    --shadow-medium:
        0 18px 45px rgba(0, 0, 0, 0.25);

    --shadow-large:
        0 28px 70px rgba(0, 0, 0, 0.34);

    --accent-shadow:
        0 16px 38px rgba(139, 92, 246, 0.2);

    /* Motion */
    --transition-fast: 160ms ease;
    --transition: 240ms ease;
    --transition-slow: 420ms ease;
}


/* =========================================================
   2. RESET
========================================================= */

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;

    color: var(--text-primary);

    background:
        radial-gradient(
            circle at 15% 4%,
            rgba(139, 92, 246, 0.11),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 35%,
            rgba(0, 212, 255, 0.045),
            transparent 28%
        ),
        var(--background);

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

    line-height: 1.6;

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

body::before {
    content: "";

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

    pointer-events: none;

    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(119, 143, 174, 0.1) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(119, 143, 174, 0.1) 1px,
            transparent 1px
        );

    background-size: 52px 52px;

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            rgba(0, 0, 0, 0.8) 58%,
            transparent 100%
        );
}

body::after {
    content: "";

    position: fixed;
    top: -260px;
    left: 50%;
    z-index: -2;

    width: 720px;
    height: 720px;

    pointer-events: none;

    border-radius: 50%;

    background: rgba(139, 92, 246, 0.07);

    filter: blur(130px);

    transform: translateX(-50%);
}

body.light-mode {
    --background: #f7f5fb;
    --background-secondary: #f0edf8;

    --surface: #ffffff;
    --surface-secondary: #faf8fd;
    --surface-tertiary: #f1edfa;
    --surface-elevated: #ebe5f8;

    --surface-transparent: rgba(255, 255, 255, 0.92);
    --surface-light-transparent: rgba(15, 23, 42, 0.035);

    --border: rgba(51, 65, 85, 0.14);
    --border-strong: rgba(51, 65, 85, 0.24);
    --border-accent: rgba(109, 40, 217, 0.3);

    --text-primary: #171120;
    --text-secondary: #554d63;
    --text-muted: #746c80;
    --text-subtle: #91899c;

    --shadow-small:
        0 10px 28px rgba(15, 23, 42, 0.07);

    --shadow-medium:
        0 18px 45px rgba(15, 23, 42, 0.1);

    --shadow-large:
        0 28px 70px rgba(15, 23, 42, 0.12);

    background:
        radial-gradient(
            circle at 15% 4%,
            rgba(139, 92, 246, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 35%,
            rgba(0, 212, 255, 0.055),
            transparent 28%
        ),
        var(--background);
}

body.light-mode::before {
    opacity: 0.34;

    background-image:
        linear-gradient(
            rgba(71, 85, 105, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(71, 85, 105, 0.08) 1px,
            transparent 1px
        );
}

body.light-mode::after {
    background: rgba(139, 92, 246, 0.08);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
textarea,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    color: #140722;
    background: var(--accent-bright);
}


/* =========================================================
   3. SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-elevated);
    border: 2px solid var(--background);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}


/* =========================================================
   4. SHARED LAYOUT
========================================================= */

.module-container {
    width:
        min(
            calc(100% - 40px),
            var(--container-width)
        );

    margin-inline: auto;
}

main {
    min-height: calc(100vh - var(--header-height));
}

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

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

    line-height: 1.3;

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

.eyebrow {
    color: var(--accent-bright);

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

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

.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;
}


/* =========================================================
   5. THREATHAWK NAVIGATION
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: var(--header-height);

    background: rgba(5, 9, 19, 0.88);

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

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(18px);

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

body.light-mode .site-header {
    background: rgba(247, 245, 251, 0.9);
}

.navbar {
    min-height: var(--header-height);

    display: flex;
    align-items: center;

    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    gap: 10px;

    color: var(--platform-cyan);

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

    letter-spacing: -0.035em;

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

.brand:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.brand-symbol {
    width: 28px;
    height: 28px;

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

    color: var(--platform-cyan);

    font-size: 19px;

    filter:
        drop-shadow(
            0 0 9px rgba(0, 212, 255, 0.28)
        );
}

.nav-links {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 4px;
}

.nav-links a {
    position: relative;

    padding: 9px 11px;

    color: var(--text-secondary);

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

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

    white-space: nowrap;

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

.nav-links a:hover {
    color: var(--text-primary);

    background: var(--surface-light-transparent);
}

.nav-links a:nth-child(5) {
    color: var(--accent-bright);
}

.nav-links a:nth-child(5)::after {
    content: "";

    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 4px;

    height: 2px;

    background: var(--accent);

    border-radius: 999px;
}

.nav-actions {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    gap: 10px;
}

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

    color: var(--platform-cyan);

    background: var(--platform-cyan-soft);

    border:
        1px solid rgba(0, 212, 255, 0.24);

    border-radius: 999px;

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

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

    letter-spacing: 0.04em;
}

.theme-toggle {
    min-height: 40px;

    padding: 8px 12px;

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

    gap: 8px;

    color: var(--text-secondary);

    background: var(--surface);

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

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

    cursor: pointer;

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

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

.theme-toggle:hover {
    color: var(--accent-bright);

    background: var(--surface-secondary);

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

    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.08);

    transform: translateY(-1px);
}

.theme-toggle i {
    color: var(--accent-bright);

    font-size: 14px;
}


/* =========================================================
   6. MODULE HEADER
========================================================= */

.module-header {
    position: relative;

    padding: 66px 0 58px;

    overflow: hidden;

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

.module-header::before {
    content: "";

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

    width: 580px;
    height: 580px;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.12),
            transparent 68%
        );
}

.module-header::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--border-accent),
            transparent
        );
}

.breadcrumb {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    color: var(--text-muted);

    font-size: 12px;
}

.breadcrumb a {
    color: var(--platform-cyan);

    font-weight: 700;

    transition: opacity var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.75;
}

.breadcrumb span:last-child {
    color: var(--text-secondary);
}

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

    margin-top: 32px;

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

    gap: 46px;
}

.module-heading-content {
    max-width: 820px;
}

.module-heading h1 {
    margin-top: 12px;

    font-size:
        clamp(42px, 6vw, 68px);

    line-height: 1.04;

    letter-spacing: -0.055em;
}

.module-description {
    max-width: 760px;

    margin-top: 20px;

    color: var(--text-secondary);

    font-size: 17px;

    line-height: 1.78;
}

.module-status {
    min-width: 170px;

    padding: 16px 18px;

    display: flex;
    align-items: center;

    flex-shrink: 0;

    gap: 12px;

    background: var(--surface-transparent);

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

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

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

    backdrop-filter: blur(12px);
}

.status-dot {
    width: 10px;
    height: 10px;

    flex-shrink: 0;

    background: var(--success);

    border-radius: 50%;

    box-shadow:
        0 0 13px rgba(34, 197, 94, 0.75);

    animation:
        statusPulse 2.2s infinite;
}

.module-status div {
    display: grid;
}

.module-status small {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 750;

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

.module-status strong {
    margin-top: 2px;

    color: var(--accent-bright);

    font-size: 14px;
}


/* =========================================================
   7. FOOTER
========================================================= */

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

    padding: 42px 0;

    background: rgba(3, 7, 15, 0.88);

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

body.light-mode .site-footer {
    background: rgba(238, 233, 247, 0.88);
}

.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(--platform-cyan);

    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;

    transition: color var(--transition);
}

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

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

    font-size: 10px;

    text-align: right;
}


/* =========================================================
   8. SHARED ANIMATIONS
========================================================= */

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.86);
    }
}


/* =========================================================
   9. RESPONSIVE FOUNDATION
========================================================= */

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

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

@media (max-width: 820px) {
    :root {
        --header-height: 70px;
    }

    .module-container {
        width:
            min(
                calc(100% - 28px),
                var(--container-width)
            );
    }

    .navbar {
        min-height: var(--header-height);

        gap: 16px;
    }

    .brand {
        font-size: 20px;
    }

    .nav-links {
        display: none;
    }

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

    .version-badge {
        display: none;
    }

    .module-header {
        padding: 52px 0 46px;
    }

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

        gap: 26px;
    }

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

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

        gap: 14px;
    }

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

        justify-items: start;

        gap: 24px;
    }

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

@media (max-width: 520px) {
    .theme-toggle span {
        display: none;
    }

    .theme-toggle {
        width: 40px;
        padding: 8px;
    }

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

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

    .footer-links {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
    }
}

@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;
    }
}

/* =========================================================
   THREATHAWK HASH ANALYZER
   CSS PART 2 OF 3

   Includes:
   - Analyzer workspace
   - Upload area
   - Selected file list
   - Textarea
   - Action buttons
   - Statistics cards
   - Results table
   - Duplicate highlighting
========================================================= */


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

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

.analyzer-workspace {
    padding: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(16, 28, 45, 0.96),
            rgba(8, 16, 28, 0.96)
        );

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

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

body.light-mode .analyzer-workspace {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(247, 244, 252, 0.98)
        );
}

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

    gap: 28px;
}

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

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

    font-size:
        clamp(27px, 4vw, 36px);

    line-height: 1.15;
    letter-spacing: -0.035em;
}

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

    color: var(--text-secondary);

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

.privacy-badge {
    padding: 8px 11px;

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

    flex-shrink: 0;

    gap: 7px;

    color: var(--accent-bright);

    background: var(--accent-soft);

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

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

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


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

.drop-zone {
    position: relative;

    margin-top: 28px;
    padding: 42px 28px;

    overflow: hidden;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.06),
            rgba(8, 16, 28, 0.72)
        );

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

    cursor: pointer;

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

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

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at center,
            rgba(139, 92, 246, 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(139, 92, 246, 0.1),
            rgba(10, 18, 31, 0.88)
        );

    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.18),
        0 0 30px rgba(139, 92, 246, 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(139, 92, 246, 0.08),
        0 0 30px rgba(139, 92, 246, 0.14);

    transform: scale(1.01);
}

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

body.light-mode .drop-zone {
    background:
        linear-gradient(
            145deg,
            rgba(139, 92, 246, 0.06),
            rgba(255, 255, 255, 0.9)
        );
}

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

    width: 68px;
    height: 68px;

    margin: 0 auto 17px;

    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: 19px;

    font-size: 25px;

    box-shadow:
        0 0 24px rgba(139, 92, 246, 0.09);

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

.drop-zone:hover .drop-icon,
.drop-zone.is-dragging .drop-icon {
    transform: translateY(-4px);

    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.18);
}

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

    font-size: 22px;
    letter-spacing: -0.02em;
}

.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 11px;

    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.08em;
}


/* =========================================================
   12. SELECTED FILES
========================================================= */

.selected-files {
    margin-top: 14px;

    display: grid;
    gap: 9px;

    color: var(--text-muted);

    font-size: 13px;
}

.selected-files.empty-files {
    min-height: 48px;
    padding: 12px 14px;

    display: flex;
    align-items: center;

    gap: 9px;

    background: var(--surface-light-transparent);

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

.selected-files.empty-files i {
    color: var(--accent-bright);
}

.selected-file-item {
    min-height: 58px;
    padding: 11px 13px;

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

    gap: 14px;

    background: var(--surface-secondary);

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

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

.selected-file-item:hover {
    background: var(--surface-tertiary);
    border-color: var(--border-accent);

    transform: translateX(2px);
}

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

    display: flex;
    align-items: center;

    gap: 11px;
}

.selected-file-info > div {
    min-width: 0;

    display: grid;
    gap: 3px;
}

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

    color: var(--text-primary);

    font-size: 13px;

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

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

    font-size: 11px;
}

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

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

    flex-shrink: 0;

    color: var(--accent-bright);

    background: var(--accent-soft);

    border-radius: 10px;

    font-size: 14px;
}

.remove-file-btn {
    width: 34px;
    height: 34px;
    padding: 0;

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

    flex-shrink: 0;

    color: #fca5a5;

    background: transparent;

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

    cursor: pointer;

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

.remove-file-btn:hover {
    color: #ffffff;

    background: var(--danger-soft);
    border-color: rgba(239, 68, 68, 0.38);

    transform: translateY(-1px);
}


/* =========================================================
   13. INPUT DIVIDER AND TEXTAREA
========================================================= */

.input-divider {
    margin: 26px 0;

    display: flex;
    align-items: center;

    gap: 14px;

    color: var(--text-subtle);

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

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

.input-divider::before,
.input-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--border),
            transparent
        );
}

.textarea-group {
    display: grid;
    gap: 11px;
}

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

    gap: 16px;
}

.textarea-heading label {
    font-size: 14px;
    font-weight: 750;
}

.textarea-heading span {
    color: var(--text-muted);

    font-size: 10px;
}

#hashInput {
    width: 100%;
    min-height: 190px;

    padding: 17px;

    resize: vertical;

    color: var(--text-primary);
    background: var(--background-secondary);

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

    outline: none;

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

    font-size: 14px;
    line-height: 1.7;

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

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

#hashInput:hover {
    border-color: var(--border-accent);
}

#hashInput:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.11);
}

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


/* =========================================================
   14. WORKSPACE ACTIONS
========================================================= */

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

    display: flex;
    align-items: center;

    gap: 12px;
}

.primary-button,
.secondary-button {
    min-height: 50px;
    padding: 0 18px;

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

    gap: 9px;

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

    cursor: pointer;

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

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

.primary-button {
    color: #140722;
    background: var(--accent);

    border: 1px solid transparent;

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

.primary-button:hover {
    background: var(--accent-bright);

    box-shadow:
        0 20px 44px rgba(139, 92, 246, 0.28);

    transform: translateY(-2px);
}

.secondary-button {
    color: var(--text-secondary);
    background: var(--surface-secondary);

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

.secondary-button:hover {
    color: var(--text-primary);
    background: var(--surface-tertiary);

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

    transform: translateY(-2px);
}

button:disabled {
    cursor: not-allowed;

    opacity: 0.55;

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


/* =========================================================
   15. STATISTICS
========================================================= */

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

.statistics-grid {
    display: grid;

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

    gap: 16px;
}

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

    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),
        transform var(--transition),
        box-shadow 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(139, 92, 246, 0.05);

    transform: translateY(-4px);
}

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

    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: 14px;

    font-size: 17px;
}

.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: 34px;
    font-weight: 850;

    line-height: 1;

    letter-spacing: -0.04em;
}

.stat-valid .stat-icon,
.stat-valid .stat-value {
    color: var(--success);
}

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

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

.stat-value.counting {
    animation: statPulse 0.36s ease;
}


/* =========================================================
   16. RESULTS SECTION
========================================================= */

.results-section {
    padding: 40px 0 18px;
}

.results-panel {
    padding: 28px;

    background: var(--surface-transparent);

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

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

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

    gap: 24px;
}

.results-heading h2 {
    margin-top: 6px;

    font-size: 28px;

    letter-spacing: -0.03em;
}

.results-heading p {
    margin-top: 8px;

    color: var(--text-secondary);

    font-size: 12px;
}

.result-count-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;
}


/* =========================================================
   17. RESULTS TABLE
========================================================= */

.table-wrapper {
    width: 100%;

    margin-top: 24px;

    overflow-x: auto;

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

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

    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),
        box-shadow var(--transition);
}

tbody tr:hover {
    background: rgba(139, 92, 246, 0.045);
}

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

.hash-value {
    max-width: 455px;

    overflow: hidden;

    color: var(--text-primary);

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

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

.hash-type-badge,
.status-badge,
.duplicate-badge,
.unique-badge {
    padding: 6px 10px;

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

    border-radius: 999px;

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

    white-space: nowrap;
}

.hash-type-badge {
    color: var(--accent-bright);
    background: var(--accent-soft);

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

.status-valid {
    color: #bbf7d0;
    background: var(--success-soft);

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

.status-invalid {
    color: #fecaca;
    background: var(--danger-soft);

    border: 1px solid rgba(239, 68, 68, 0.2);
}

.duplicate-badge {
    color: #fde68a;
    background: var(--warning-soft);

    border: 1px solid rgba(245, 158, 11, 0.2);
}

.unique-badge {
    color: var(--text-muted);
    background: var(--surface-light-transparent);

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

.duplicate-row {
    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(245, 158, 11, 0.1),
            rgba(139, 92, 246, 0.04)
        );
}

.duplicate-row td:first-child {
    border-left: 3px solid var(--warning);
}

.duplicate-row:hover {
    background:
        linear-gradient(
            90deg,
            rgba(245, 158, 11, 0.14),
            rgba(139, 92, 246, 0.07)
        );
}

.row-copy-btn {
    width: 38px;
    height: 38px;
    padding: 0;

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

    color: var(--text-secondary);
    background: var(--surface-secondary);

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

    cursor: pointer;

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

.row-copy-btn:hover {
    color: var(--accent-bright);
    background: var(--surface-tertiary);

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

    transform: translateY(-2px);
}

.row-copy-btn.copied {
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.4);
}

.row-copy-btn.copy-failed {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.4);
}


/* =========================================================
   18. TABLE EMPTY STATE
========================================================= */

.empty-row td {
    padding: 54px 24px;

    text-align: center;
}

.table-empty-state {
    display: grid;
    justify-items: center;

    gap: 10px;

    color: var(--text-muted);
}

.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;
}

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

    font-size: 14px;
}

.table-empty-state p {
    max-width: 390px;

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


/* =========================================================
   19. PART 2 ANIMATION
========================================================= */

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

    45% {
        transform: scale(1.1);
    }

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


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

@media (max-width: 1050px) {
    .statistics-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .analyzer-section {
        padding-top: 54px;
    }

    .analyzer-workspace,
    .results-panel {
        padding: 23px;
    }

    .workspace-heading,
    .results-heading,
    .textarea-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .drop-zone {
        padding: 34px 20px;
    }

    .textarea-heading {
        gap: 5px;
    }
}

@media (max-width: 600px) {
    .workspace-actions {
        flex-direction: column;
    }

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

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

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

    .selected-file-item {
        align-items: flex-start;
    }

    .results-panel {
        border-radius: var(--radius-large);
    }
}

@media (max-width: 440px) {
    .drop-zone {
        padding: 28px 15px;
    }

    .drop-icon {
        width: 58px;
        height: 58px;
    }

    #hashInput {
        min-height: 170px;

        padding: 14px;

        font-size: 12px;
    }
}

/* =========================================================
   THREATHAWK HASH ANALYZER
   CSS PART 3 OF 3

   Includes:
   - Export panel
   - Information cards
   - Toast notification
   - Light mode polish
   - Utility classes
   - Animations
   - Accessibility
   - Final responsive rules
========================================================= */


/* =========================================================
   21. EXPORT SECTION
========================================================= */

.export-section{
    padding:52px 0 18px;
}

.export-panel{

    padding:28px;

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

    background:var(--surface-transparent);

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

    border-radius:var(--radius-extra-large);

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

.export-content{

    display:flex;
    align-items:center;

    gap:20px;
}

.export-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:16px;

    font-size:22px;
}

.export-content h2{

    margin-top:6px;

    font-size:28px;

    letter-spacing:-0.03em;
}

.export-content p{

    margin-top:8px;

    color:var(--text-secondary);

    font-size:13px;

    line-height:1.7;
}


/* =========================================================
   EXPORT MENU
========================================================= */

.export-menu{

    position:relative;

    flex-shrink:0;
}

.export-menu-button{

    min-height:50px;

    padding:0 18px;

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

    gap:10px;

    color:#140722;

    background:var(--accent);

    border:none;

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

    cursor:pointer;

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

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

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

.export-menu-button:hover{

    background:var(--accent-bright);

    transform:translateY(-2px);

    box-shadow:
        0 18px 44px rgba(139,92,246,.28);
}

.export-options{

    position:absolute;

    top:calc(100% + 10px);
    right:0;

    width:220px;

    display:none;

    background:var(--surface);

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

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

    overflow:hidden;

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

    z-index:50;
}

.export-options.show{
    display:block;
}

.export-options button{

    width:100%;

    padding:14px 16px;

    display:flex;
    align-items:center;

    gap:12px;

    color:var(--text-secondary);

    background:none;

    border:none;

    cursor:pointer;

    text-align:left;

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

.export-options button:hover{

    color:var(--text-primary);

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


/* =========================================================
   INFORMATION SECTION
========================================================= */

.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;

    background:var(--surface-transparent);

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

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

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

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

.information-card:hover{

    transform:translateY(-4px);

    background:var(--surface-secondary);

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

    box-shadow:
        0 18px 44px rgba(0,0,0,.18),
        0 0 24px rgba(139,92,246,.06);
}

.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;
}

.information-card p{

    margin-top:12px;

    color:var(--text-secondary);

    font-size:13px;

    line-height:1.72;
}


/* =========================================================
   TOAST
========================================================= */

.toast{

    position:fixed;

    right:24px;
    bottom:24px;

    z-index:1500;

    min-width:240px;

    padding:12px 16px;

    display:flex;
    align-items:center;

    gap:12px;

    color:var(--text-primary);

    background:var(--surface-elevated);

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

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

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

    opacity:0;
    visibility:hidden;

    transform:translateY(16px);

    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;

    color:#140722;

    background:var(--accent);

    border-radius:8px;

    font-size:12px;
}

.toast span{

    color:var(--text-secondary);

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


/* =========================================================
   LIGHT MODE POLISH
========================================================= */

body.light-mode
.analyzer-workspace,
body.light-mode
.results-panel,
body.light-mode
.export-panel,
body.light-mode
.information-card{

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

    border-color:
        rgba(51,65,85,.14);
}

body.light-mode
.drop-zone{

    background:
        rgba(255,255,255,.95);
}

body.light-mode
.stat-card{

    background:
        rgba(255,255,255,.93);
}

body.light-mode
.table-wrapper table{

    background:#ffffff;
}

body.light-mode
thead{

    background:#f3effb;
}

body.light-mode
tbody tr:hover{

    background:
        rgba(139,92,246,.06);
}

body.light-mode
.export-options{

    background:#ffffff;
}

body.light-mode
.toast{

    background:#ffffff;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
.drop-zone:focus-visible{

    outline:2px solid var(--accent);

    outline-offset:3px;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:
            translateY(12px);
    }

    to{

        opacity:1;

        transform:
            translateY(0);
    }
}

@keyframes pop{

    0%{

        transform:scale(1);
    }

    50%{

        transform:scale(1.08);
    }

    100%{

        transform:scale(1);
    }
}

.results-panel,
.export-panel,
.information-card{

    animation:
        fadeUp .4s ease;
}

.stat-value.updated{

    animation:
        pop .35s ease;
}


/* =========================================================
   FINAL RESPONSIVE
========================================================= */

@media(max-width:950px){

    .information-grid{

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

    .information-card:last-child{

        grid-column:1/-1;
    }

    .export-panel{

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

    .export-menu{

        width:100%;
    }

    .export-menu-button{

        width:100%;
    }

    .export-options{

        width:100%;
    }

}

@media(max-width:650px){

    .information-grid{

        grid-template-columns:1fr;
    }

    .information-card:last-child{

        grid-column:auto;
    }

    .toast{

        left:14px;
        right:14px;

        min-width:0;
    }

    .export-content{

        align-items:flex-start;

        flex-direction:column;
    }

}

@media print{

    body{

        color:#000;
        background:#fff;
    }

    body::before,
    body::after,
    .site-header,
    .site-footer,
    .toast,
    .theme-toggle,
    .export-section,
    .information-section{

        display:none!important;
    }

    .analyzer-workspace,
    .results-panel{

        box-shadow:none;

        border:1px solid #999;

        background:#fff;
    }

}