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

body {
    background: #000;
    font-family: "Consolas", "Monaco", monospace;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.layout {
    display: flex;
    height: 100vh;
    gap: 1px;
    background: #333;
}

.terminal-panel {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    background: #000;
}

.display-panel {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    min-width: 280px;
}

.panel-header {
    padding: 8px 12px;
    background: #111;
    border-bottom: 1px solid #c00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #c00;
}

.panel-status {
    font-size: 9px;
    color: #0c0;
}

.terminal-screen {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.2;
    cursor: text;
    outline: none;
}

#terminal-output {
    white-space: pre-wrap;
    word-wrap: break-word;
}

#terminal-output .line {
    display: block;
}

#terminal-output .cmd {
    color: #666;
}

#terminal-output .error {
    color: #c00;
}

#terminal-output .success {
    color: #0c0;
}

#terminal-output .info {
    color: #ccc;
}

.input-line {
    display: flex;
    align-items: center;
}

.prompt {
    color: #c00;
    margin-right: 6px;
}

#terminal-input {
    color: #fff;
}

.cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: #c00;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.display-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.display-section {
    border: 1px solid #222;
}

.section-header {
    font-size: 11px;
    letter-spacing: 1px;
    padding: 6px 10px;
    background: #111;
    color: #888;
}

.tank-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.tank {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tank-label {
    font-size: 13px;
    width: 70px;
    color: #fff;
}

.tank-type {
    font-size: 11px;
    color: #888;
}

.tank-bar {
    flex: 1;
    height: 12px;
    background: #111;
    border: 1px solid #222;
}

.tank-fill {
    height: 100%;
    background: #c00;
    transition: width 0.3s;
}

.tank-fill.lox { background: #06c; }
.tank-fill.rp1 { background: #c80; }
.tank-fill.n2h4 { background: #0a0; }
.tank-fill.low { animation: pulse 1s infinite; }

@keyframes pulse {
    50% { opacity: 0.5; }
}

.tank-pct {
    font-size: 13px;
    width: 40px;
    text-align: right;
    color: #fff;
}

.bay-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px;
}

.bay {
    text-align: center;
    padding: 8px;
    background: #111;
    border: 1px solid #222;
}

.bay-num {
    font-size: 16px;
    font-weight: bold;
}

.bay-status {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.bay.occupied { border-color: #0a0; }
.bay.occupied .bay-status { color: #0c0; }
.bay.available { border-color: #333; }
.bay.maintenance { border-color: #c80; }
.bay.maintenance .bay-status { color: #c80; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px;
}

.stat {
    padding: 8px;
    background: #111;
    border: 1px solid #222;
}

.stat-label {
    font-size: 10px;
    color: #888;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 14px;
    font-weight: bold;
    margin-top: 2px;
}

@media (max-width: 800px) {
    .layout { flex-direction: column; }
    .display-panel { min-width: auto; }
}
