
:root {
    --bg-color: #050505;
    --panel-bg: #0a0a0a;
    --neon-green: #00ff41;
    --neon-red: #ff003c;
    --neon-blue: #00f3ff;
    --text-color: #e0e0e0;
    --border-color: #333;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'JetBrains Mono', monospace;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* CRT Effects */
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

.scan-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background-color: rgba(0, 255, 65, 0.1);
    animation: scan 3s linear infinite;
    z-index: 9;
    pointer-events: none;
}

@keyframes scan {
    0% { top: -5%; }
    100% { top: 100%; }
}

.container {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
    position: relative;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.neon-text {
    color: var(--neon-green);
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.sub {
    font-size: 1rem;
    color: var(--neon-blue);
    margin-left: 10px;
    letter-spacing: 2px;
}

.status-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 50%;
    box-shadow: 0 0 5px #333;
}

.indicator.active {
    background-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    flex: 1;
    overflow: hidden;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

h2 {
    color: var(--neon-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 5px;
}

/* Controls */
.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

button:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

button.danger {
    border-color: var(--neon-red);
    color: var(--neon-red);
}

button.danger:hover {
    background: rgba(255, 0, 60, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.2);
}

/* Logs */
.log-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.terminal-text {
    flex: 1;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #aaa;
    border: 1px solid #222;
    padding: 10px;
    background: #000;
}

.terminal-text::-webkit-scrollbar {
    width: 5px;
}

.terminal-text::-webkit-scrollbar-thumb {
    background: #333;
}

/* Signals */
#signals-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-signals {
    color: #444;
    text-align: center;
    margin-top: 50px;
    font-style: italic;
}

.signal-card {
    border: 1px solid var(--neon-green);
    background: rgba(0, 255, 65, 0.02);
    padding: 15px;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

.signal-card.short {
    border-color: var(--neon-red);
    background: rgba(255, 0, 60, 0.02);
}

@keyframes slideIn {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.signal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.signal-body {
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.signal-time {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    text-align: right;
}

/* Footer */
footer {
    margin-top: 10px;
    border-top: 1px solid #222;
    padding-top: 10px;
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
}
