@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

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

body {
    background: #000;
    color: #00ff00;
    font-family: 'Courier Prime', monospace;
    overflow: hidden;
    height: 100vh;
}

.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boot-content {
    position: relative;
    width: 80%;
    max-width: 800px;
}

.crt-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.1) 2px,
        rgba(0, 255, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 1;
}

#boot-text {
    color: #00ff00;
    font-size: 14px;
    line-height: 1.2;
    text-shadow: 0 0 10px #00ff00;
    white-space: pre-wrap;
}

.hidden {
    display: none !important;
}

#main-interface {
    height: 100vh;
    display: grid;
    grid-template-rows: 60px 1fr 200px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
}

.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #001100, #002200);
    border: 2px solid #00ff00;
    padding: 10px 20px;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.2);
}

.status-lights {
    display: flex;
    gap: 15px;
}

.led-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #333;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.led-indicator[data-status="power"] {
    background: #00ff00;
    box-shadow: 0 0 20px #00ff00, inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.led-indicator[data-status="data"] {
    background: #ffff00;
    box-shadow: 0 0 20px #ffff00, inset 0 0 10px rgba(0, 0, 0, 0.3);
    animation: blink 2s infinite;
}

.led-indicator[data-status="network"] {
    background: #ff0080;
    box-shadow: 0 0 20px #ff0080, inset 0 0 10px rgba(0, 0, 0, 0.3);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.system-clock {
    font-size: 18px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.monitor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 100%;
}

.main-monitor {
    position: relative;
    background: #000;
    border: 4px solid #00ff00;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.main-monitor canvas {
    width: 100%;
    height: calc(100% - 30px);
    background: #001100;
    border: 2px solid #003300;
}

.secondary-monitors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.small-monitor {
    position: relative;
    background: #000;
    border: 3px solid #00ff00;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.small-monitor canvas {
    width: 100%;
    height: calc(100% - 25px);
    background: #001100;
    border: 1px solid #003300;
}

.monitor-label {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-weight: bold;
}

.control-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: linear-gradient(45deg, #001100, #002200);
    border: 2px solid #00ff00;
    padding: 15px;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.1);
}

.control-section {
    display: flex;
    gap: 15px;
    align-items: center;
}

.retro-button {
    background: linear-gradient(45deg, #003300, #005500);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 10px 20px;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 5px #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    transition: all 0.2s;
}

.retro-button:hover {
    background: linear-gradient(45deg, #005500, #007700);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
    text-shadow: 0 0 10px #00ff00;
}

.emergency-button {
    background: radial-gradient(circle, #ff0000, #aa0000);
    border: 3px solid #ff0000;
    color: #ffffff;
    padding: 15px 25px;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 5px #ffffff;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    transition: all 0.2s;
    animation: glow-red 3s infinite alternate;
}

@keyframes glow-red {
    0% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    100% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.8); }
}

.emergency-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 0, 0, 1);
}

.slider-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-control label {
    color: #00ffff;
    font-weight: bold;
    min-width: 100px;
}

.slider-control input[type="range"] {
    flex: 1;
    appearance: none;
    background: #003300;
    border: 1px solid #00ff00;
    height: 20px;
    outline: none;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 25px;
    height: 25px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff00;
    cursor: pointer;
}

.terminal {
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 5px;
    font-family: 'Courier Prime', monospace;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: linear-gradient(45deg, #003300, #005500);
    border-bottom: 1px solid #00ff00;
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.terminal-status {
    color: #00ffff;
}

.terminal-output {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
    max-height: 120px;
}

.terminal-input-line {
    border-top: 1px solid #003300;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prompt {
    color: #00ffff;
    font-weight: bold;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    outline: none;
}

.cursor {
    color: #00ff00;
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* CRT Effects */
canvas {
    filter: contrast(1.2) brightness(1.1);
}

.main-monitor::after,
.small-monitor::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
    border-radius: inherit;
}