/* reasoner.dev - Cyberpunk Dashboard / Sci-Fi HUD / Data-Viz */
/* Colors: #0A0F1A, #121A2A, #1E90FF, #00E676, #FFB300, #FF1744, #6080A0, #E0E8F0 */

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

body {
    background: #0A0F1A;
    color: #E0E8F0;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

/* Background Effects */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.008) 0px, rgba(255,255,255,0.008) 1px, transparent 1px, transparent 3px);
}

.hud-grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(30,144,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,144,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
}

.scan-line {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30,144,255,0.4), transparent);
    z-index: 50;
    pointer-events: none;
    animation: scanMove 6s linear infinite;
}

@keyframes scanMove {
    0% { top: 0; }
    100% { top: 100vh; }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 240px;
    height: 100vh;
    background: rgba(10, 15, 26, 0.95);
    border-right: 1px solid rgba(30,144,255,0.15);
    display: flex;
    flex-direction: column;
    z-index: 10;
    padding: 24px 16px;
}

.sidebar-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(30,144,255,0.1);
    margin-bottom: 24px;
}

.sidebar-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1E90FF;
    letter-spacing: 0.1em;
}

/* Reasoning Chain */
.reasoning-chain {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.chain-node {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 0;
}

.node-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #6080A0;
    background: transparent;
    flex-shrink: 0;
    transition: all 0.3s;
}

.chain-node.active .node-circle {
    border-color: #1E90FF;
    background: rgba(30,144,255,0.2);
    box-shadow: 0 0 12px rgba(30,144,255,0.4);
}

.node-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #6080A0;
}

.chain-node.active .node-label {
    color: #1E90FF;
}

.chain-line {
    width: 2px;
    height: 24px;
    background: rgba(96, 128, 160, 0.2);
    margin-left: 7px;
}

.chain-line.active {
    background: rgba(30,144,255,0.5);
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(30,144,255,0.1);
}

.sidebar-ver {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    color: #6080A0;
    letter-spacing: 0.05em;
}

/* Main Area */
.main-area {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Header */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(30,144,255,0.1);
}

.dash-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1E90FF;
    text-shadow: 0 0 20px rgba(30,144,255,0.3);
    text-transform: uppercase;
}

.dash-subtitle {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #6080A0;
    letter-spacing: 0.08em;
    display: block;
    margin-top: 4px;
}

.header-status {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #00E676;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #6080A0;
    display: inline-block;
}

.pulse-dot.active {
    background: #00E676;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(0,230,118,0.4); }
    50% { opacity: 0.3; box-shadow: none; }
}

/* Panel Grid */
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px 32px;
}

/* HUD Panels */
.hud-panel {
    background: rgba(18, 26, 42, 0.8);
    border: 1px solid rgba(30,144,255,0.15);
    border-radius: 4px;
    padding: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hud-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.panel-wide { grid-column: span 2; }

.panel-bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: #1E90FF;
    border-radius: 4px 4px 0 0;
}

.panel-bar.bar-green { background: #00E676; }
.panel-bar.bar-red { background: #FF1744; }
.panel-bar.bar-gold-solid { background: #FFB300; }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(30,144,255,0.1);
}

.panel-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #6080A0;
}

.panel-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #E0E8F0;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.panel-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #6080A0;
}

/* Metrics */
.metric-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.metric-name {
    width: 120px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #6080A0;
}

.metric-bar {
    flex: 1;
    height: 6px;
    background: rgba(30,144,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    background: #1E90FF;
    border-radius: 3px;
    transition: width 1.2s ease-out;
}

.bar-gold { background: #FFB300; }

.metric-val {
    width: 80px;
    text-align: right;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #E0E8F0;
}

/* Features */
.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #E0E8F0;
}

.feat-icon {
    color: #1E90FF;
    margin-right: 8px;
    font-family: 'Roboto Mono', monospace;
}

/* Status */
.status-line {
    padding: 4px 0;
    font-size: 0.85rem;
}

.status-ok {
    color: #00E676;
    margin-right: 8px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
}

/* Log */
.log-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-entry {
    display: flex;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(30,144,255,0.05);
}

.log-time {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #FFB300;
    flex-shrink: 0;
}

.log-msg {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #6080A0;
}

/* Footer */
.dash-footer {
    text-align: center;
    padding: 32px;
    border-top: 1px solid rgba(30,144,255,0.08);
}

.footer-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: #6080A0;
    opacity: 0.5;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .main-area { margin-left: 0; }
    .panel-grid { grid-template-columns: 1fr; }
    .panel-wide { grid-column: span 1; }
}
