@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #06090e;
    color: #94a3b8;
    padding: 60px 20px;
}

.terminal-container {
    max-width: 1000px;
    margin: 0 auto;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 3px),
        #0b0f19;
    border: 1px solid #1e293b;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
}

.terminal-container::before,
.terminal-container::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: #7f1d1d;
    border-style: solid;
    pointer-events: none;
}

.terminal-container::before {
    top: -1px;
    left: -1px;
    border-width: 3px 0 0 3px;
}

.terminal-container::after {
    top: -1px;
    right: -1px;
    border-width: 3px 3px 0 0;
}

.terminal-header {
    background: #06090e;
    padding: 20px 28px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.terminal-header::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(-45deg, #7f1d1d 0 10px, #06090e 10px 20px);
}

.terminal-header h1 {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 1px;
}

.content-layout {
    padding: 32px;
}

.terminal-header h1 {
    font-family: 'Chakra Petch', -apple-system, sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 0 0 rgba(127, 29, 29, 0.55);
    position: relative;
    padding-bottom: 12px;
}

.terminal-header h1::before {
    content: "Restricted Access";
    position: absolute;
    top: -8px;
    right: -128px;
    transform: rotate(-6deg);
    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b91c1c;
    border: 1px dashed rgba(127, 29, 29, 0.6);
    padding: 3px 8px;
    white-space: nowrap;
}

.terminal-header h1::after {
    content: "NCPD Central Database \2014  Active Bounties";
    display: block;
    font-family: monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #475569;
    margin-top: 8px;
    text-shadow: none;
}

h3 {
    display: none;
}

.directory-desc {
    display: none;
}

/* --- THICK MATRIX TABLE DESIGN --- */
.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

.matrix-table th {
    text-align: left;
    padding: 18px 20px;
    background: #06090e;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #1e293b;
}

.matrix-table tr {
    background: #0b0f19;
}

.matrix-table td {
    padding: 24px 20px;
    border-bottom: 1px solid #1e293b;
    font-size: 14px;
    color: #e2e8f0;
    vertical-align: middle;
}

.matrix-table tr:hover td {
    background: #0f1522;
}

.view-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.view-link:hover {
    text-decoration: underline;
}

/* --- TACTICAL DOSSIER VIEW --- */
.profile-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
}

.pfp-placeholder {
    width: 220px;
    height: 280px;
    background: #06090e;
    border: 1px solid #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.dossier-header-block {
    width: 100%;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.dossier-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.dossier-sheet {
    display: flex;
    column-gap: 28px;
    row-gap: 20px;
    flex-wrap: wrap;
}

.info-block {
    flex: 1 1 45%;
    min-width: 220px;
}

.info-block.full-width {
    flex: 1 1 100%;
}

.field-label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.field-value {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Status Badges */
.heat-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}
.heat-minor { background: #1e293b; color: #94a3b8; }
.heat-elevated { background: rgba(234, 179, 8, 0.1); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.2); }
.heat-high { background: rgba(249, 115, 22, 0.1); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.2); }
.heat-critical { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid #ef4444; }
.heat-other { background: rgba(239, 68, 68, 0.1); color: #07c951; border: 1px solid #ef4444; }

.terminal-header .heat-elevated { background: rgba(161, 98, 7, 0.12); color: #b8860b; border: 1px solid rgba(161, 98, 7, 0.3); }
.terminal-header .heat-high { background: rgba(154, 52, 18, 0.14); color: #c2410c; border: 1px solid rgba(154, 52, 18, 0.35); }
.terminal-header .heat-critical { background: rgba(127, 29, 29, 0.16); color: #b91c1c; border: 1px solid rgba(127, 29, 29, 0.5); }

/* --- SYNC PANEL OVERRIDES --- */
.telemetry-sync-panel {
    margin-top: 24px;
    width: 100%;
}

.sync-form {
    display: flex;
    gap: 12px;
}

input[type="text"] {
    flex-grow: 1;
    background: #06090e;
    border: 1px solid #1e293b;
    color: #cbd5e1;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 3px;
    outline: none;
    font-family: monospace;
}

input[type="text"]:focus {
    border-color: #38bdf8;
}

.shell-output-terminal {
    margin-top: 16px;
    background: #020407;
    color: #38bdf8;
    padding: 16px;
    font-family: monospace;
    font-size: 13px;
    border: 1px solid #1e293b;
    border-radius: 3px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.directory-return-bar {
    margin-top: 16px;
    width: 100%;
    font-size: 13px;
}

/* Blinking Alert Animation */
@keyframes blinker {
    50% { opacity: 0.2; }
}