/* A.R.G.U.S. Command Console v3 */

:root {
    --argus-red: #e8192c;
    --argus-red-dim: #8b0f18;
    --argus-red-glow: rgba(232, 25, 44, 0.35);
    --argus-bg: #0a0406;
    --argus-panel: #120608;
    --argus-border: rgba(232, 25, 44, 0.28);
    --argus-text: #f4e8ea;
    --argus-muted: #8a6b70;
    --argus-accent: #ff6b7a;
    --argus-gold: #ffc857;
    --argus-cyan: #4ee6ff;
    --argus-green: #26d07c;
}

.argus-console-win {
    width: 960px !important;
    height: 640px !important;
    border: 1px solid var(--argus-border) !important;
    background: var(--argus-bg) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 40px var(--argus-red-glow) !important;
    font-family: 'JetBrains Mono', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.argus-console-header {
    background: linear-gradient(90deg, #1a0508 0%, #2d0a10 50%, #1a0508 100%);
    border-bottom: 1px solid var(--argus-border);
    color: var(--argus-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    min-height: 38px;
    gap: 12px;
}

.argus-console-header-title {
    font: 700 13px/1 'Orbitron', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--argus-red);
    text-shadow: 0 0 12px var(--argus-red-glow);
}

.argus-console-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

#argus-officer-badge {
    font-size: 11px !important;
    background: rgba(232, 25, 44, 0.15) !important;
    color: var(--argus-accent) !important;
    border: 1px solid var(--argus-border);
    padding: 3px 8px !important;
    border-radius: 3px;
    font-weight: 600;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.argus-console-tabs {
    display: flex;
    background: #0d0305;
    border-bottom: 1px solid var(--argus-border);
    overflow-x: auto;
}

.argus-tab-btn {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(232, 25, 44, 0.12);
    color: var(--argus-muted);
    font: 600 11px/1 'Orbitron', sans-serif;
    letter-spacing: 0.06em;
    padding: 10px 6px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    text-transform: uppercase;
}

.argus-tab-btn:last-child {
    border-right: none;
}

.argus-tab-btn:hover {
    color: var(--argus-accent);
    background: rgba(232, 25, 44, 0.06);
}

.argus-tab-btn.active {
    color: var(--argus-text);
    background: rgba(232, 25, 44, 0.14);
    box-shadow: inset 0 -2px 0 var(--argus-red);
}

.argus-console-body {
    padding: 14px;
    height: calc(100% - 76px);
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(232, 25, 44, 0.06), transparent 50%),
        var(--argus-bg);
    box-sizing: border-box;
}

.argus-tab-content {
    display: none;
    height: 100%;
    width: 100%;
    min-height: 0;
    gap: 12px;
    color: var(--argus-text);
}

.argus-tab-content.active {
    display: flex;
}

.argus-panel {
    border: 1px solid var(--argus-border);
    background: var(--argus-panel);
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.argus-panel-title {
    font: 700 11px/1 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--argus-red);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(232, 25, 44, 0.15);
}

.argus-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}

.argus-stat-card {
    border: 1px solid var(--argus-border);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    padding: 8px 10px;
    text-align: center;
}

.argus-stat-value {
    font: 700 22px/1 'Orbitron', sans-serif;
    color: var(--argus-text);
}

.argus-stat-label {
    font-size: 10px;
    color: var(--argus-muted);
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.08em;
}

.argus-user-row,
.argus-case-item,
.argus-staff-item {
    border: 1px solid rgba(232, 25, 44, 0.18);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    padding: 10px;
    font-size: 12px;
    transition: border-color 0.15s, background 0.15s;
}

.argus-case-item,
.argus-staff-item {
    cursor: pointer;
}

.argus-case-item:hover,
.argus-staff-item:hover,
.argus-case-item.selected,
.argus-staff-item.selected {
    border-color: var(--argus-red);
    background: rgba(232, 25, 44, 0.08);
}

.argus-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.argus-user-name {
    color: var(--argus-accent);
    font-weight: 700;
}

.argus-user-meta {
    color: var(--argus-muted);
    font-size: 11px;
}

.argus-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.argus-btn {
    border: 1px solid var(--argus-border);
    background: rgba(232, 25, 44, 0.08);
    color: var(--argus-accent);
    font: 600 10px/1 'Orbitron', sans-serif;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-transform: uppercase;
}

.argus-btn:hover {
    background: rgba(232, 25, 44, 0.2);
    color: var(--argus-text);
}

.argus-btn--danger { border-color: #660000; color: #ff4444; }
.argus-btn--ok { border-color: rgba(38, 208, 124, 0.4); color: var(--argus-green); }
.argus-btn--gold { border-color: rgba(255, 200, 87, 0.4); color: var(--argus-gold); }
.argus-btn--primary {
    background: rgba(232, 25, 44, 0.2);
    border-color: var(--argus-red);
    color: var(--argus-text);
    padding: 10px 16px;
    font-size: 11px;
}

.argus-btn--hack {
    border-color: rgba(255, 200, 87, 0.55);
    color: var(--argus-gold);
    background: rgba(255, 200, 87, 0.1);
    box-shadow: 0 0 12px rgba(255, 200, 87, 0.15);
}

.argus-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.argus-log {
    flex: 1;
    border: 1px solid rgba(232, 25, 44, 0.15);
    background: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    padding: 8px;
    overflow-y: auto;
    color: #c97880;
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: 'JetBrains Mono', monospace;
    min-height: 0;
}

.argus-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.argus-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.argus-field label {
    font-size: 10px;
    color: var(--argus-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.argus-field input,
.argus-field select,
.argus-field textarea,
.argus-console-win .input-hack {
    border: 1px solid var(--argus-border) !important;
    background: rgba(0, 0, 0, 0.45) !important;
    color: var(--argus-text) !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
    border-radius: 3px;
    font-family: inherit;
}

.argus-field textarea {
    resize: none;
    min-height: 72px;
    flex: 1;
}

.argus-field--full {
    grid-column: 1 / -1;
}

.argus-severity {
    font-size: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.argus-severity--critical { color: #ff3366; }
.argus-severity--high { color: #ff9900; }
.argus-severity--medium { color: #ffcc00; }
.argus-severity--low { color: var(--argus-green); }

.argus-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--argus-muted);
    text-align: center;
    gap: 10px;
    font-size: 11px;
}

.argus-detail-empty-icon {
    font-size: 42px;
    opacity: 0.35;
}

.argus-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.argus-detail-table td {
    padding: 6px 0;
    border-bottom: 1px solid rgba(232, 25, 44, 0.1);
    vertical-align: top;
}

.argus-detail-table td:first-child {
    color: var(--argus-muted);
    width: 38%;
}

.argus-detail-body {
    flex: 1;
    border: 1px solid rgba(232, 25, 44, 0.15);
    background: rgba(0, 0, 0, 0.45);
    padding: 10px;
    font-size: 10px;
    line-height: 1.5;
    overflow-y: auto;
    white-space: pre-wrap;
    color: #d4a8ad;
    min-height: 80px;
}

.argus-id-card {
    width: 130px;
    height: 150px;
    border: 2px dashed var(--argus-border);
    border-radius: 4px;
    background: rgba(232, 25, 44, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: var(--argus-muted);
    position: relative;
    overflow: hidden;
}

.argus-id-scan {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: var(--argus-red);
    box-shadow: 0 0 8px var(--argus-red);
    animation: argusScan 2.2s infinite alternate;
}

@keyframes argusScan {
    from { top: 0; }
    to { top: 100%; }
}

.argus-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.argus-archive-card {
    border: 1px solid var(--argus-border);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.argus-archive-card:hover {
    border-color: var(--argus-red);
    transform: translateY(-2px);
}

.argus-archive-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.argus-archive-name {
    font: 700 9px/1.2 'Orbitron', sans-serif;
    color: var(--argus-accent);
    text-transform: uppercase;
}

.argus-archive-count {
    font-size: 9px;
    color: var(--argus-muted);
    margin-top: 4px;
}

.argus-layout-3 {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.9fr;
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.argus-layout-2 {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.argus-layout-dossier {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 12px;
    height: 100%;
}

.argus-broadcast-row {
    display: flex;
    gap: 6px;
}

.argus-broadcast-row input {
    flex: 1;
}

#argus-offshore-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: #050001;
    z-index: 100;
    border: 1px solid var(--argus-red);
    padding: 14px;
    flex-direction: column;
    gap: 10px;
    color: var(--argus-red);
    box-sizing: border-box;
}

.argus-console-win ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.argus-console-win ::-webkit-scrollbar-thumb {
    background: rgba(232, 25, 44, 0.35);
    border-radius: 3px;
}

.argus-hack-badge {
    display: inline-block;
    font-size: 7px;
    padding: 2px 5px;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.argus-hack-badge--staff {
    background: rgba(78, 230, 255, 0.15);
    color: var(--argus-cyan);
    border: 1px solid rgba(78, 230, 255, 0.3);
}

.argus-hack-badge--darknot {
    background: rgba(255, 200, 87, 0.18);
    color: var(--argus-gold);
    border: 1px solid rgba(255, 200, 87, 0.4);
}

.argus-hack-badge--case {
    background: rgba(255, 51, 102, 0.15);
    color: #ff6699;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

#argus-node-hack-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: #050001;
    z-index: 110;
    border: 1px solid var(--argus-gold);
    padding: 14px;
    flex-direction: column;
    gap: 10px;
    color: var(--argus-gold);
    box-sizing: border-box;
}

#argus-node-hack-overlay.open {
    display: flex;
}

.argus-node-hack-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 12px;
    min-height: 0;
}

.argus-node-hack-log {
    flex: 1;
    min-height: 0;
    font-size: 12px;
    line-height: 1.5;
}

.argus-node-profile {
    border: 1px solid rgba(255, 200, 87, 0.25);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    padding: 12px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
}
