/* Space Operations Alpha Assistant Dashboard Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    background-color: #000000;
    color: #00ff00;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#dashboard {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    padding: 2px;
    gap: 2px;
}

.row {
    display: flex;
    flex: 1;
    gap: 2px;
    min-height: 0;
}

.panel {
    border: 1px solid #00ff00;
    background-color: #001100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.panel-header {
    background-color: #002200;
    border-bottom: 1px solid #00ff00;
    padding: 2px 4px;
    font-size: 11px;
    font-weight: bold;
    color: #00ff00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    font-size: 11px;
    line-height: 1.2;
}

/* Weather Panel */
.weather-panel {
    flex: 0 0 25%;
}

.weather-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-gauge {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gauge-label {
    min-width: 80px;
}

.gauge-bar {
    flex: 1;
    background-color: #001100;
    border: 1px solid #003300;
    height: 12px;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background-color: #00ff00;
    transition: width 0.1s linear;
}

.gauge-pointer {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ffff00;
}

.power-bar-section {
    border-top: 1px solid #00ff00;
    padding: 2px 4px;
    background-color: #000800;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.power-status {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.power-bar {
    font-family: monospace;
    font-size: 10px;
    color: #00ff00;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.power-output {
    font-size: 10px;
    color: #00ff00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chart Panels */
.chart-panel {
    flex: 1;
}

.chart-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.chart-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* News Panel */
.news-panel {
    flex: 0 0 25%;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.news-item {
    padding: 1px 0;
    border-bottom: 1px dotted #003300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item:last-child {
    border-bottom: none;
}

.news-current {
    color: #ffff00;
    font-weight: bold;
}

.news-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Telemetry Panel */
.telemetry-panel {
    flex: 0 0 25%;
}

.telemetry-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.telemetry-line {
    font-family: monospace;
    font-size: 10px;
    white-space: pre;
    padding: 1px 0;
}

.telemetry-line.highlight {
    font-weight: bold;
    color: #ffff00;
    animation: highlight-fade 1s ease-out;
}

@keyframes highlight-fade {
    0% { background-color: #003300; }
    100% { background-color: transparent; }
}

.telemetry-message {
    color: #00aa00;
    font-style: italic;
}

/* Scrollbar styling */
.panel-content::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track {
    background: #001100;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #003300;
    border: 1px solid #00ff00;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: #005500;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .panel-header {
        font-size: 10px;
    }
    
    .panel-content {
        font-size: 10px;
    }
}

/* Loading states */
.loading {
    color: #00aa00;
    font-style: italic;
}

.error {
    color: #ff0000;
}

