/* W3C Standard CSS - Retro Terminal Style */

/* CSS Grid Layout Module Level 1 */
/* CSS Flexible Box Layout Module Level 1 */
/* CSS Color Module Level 3 */
/* CSS Fonts Module Level 3 */

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

body {
    background-color: #000000;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal {
    width: 100%;
    max-width: 1200px;
    border: 3px solid #00ff00;
    background-color: #001100;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5),
                inset 0 0 50px rgba(0, 255, 0, 0.1);
    padding: 20px;
    border-radius: 5px;
}

.terminal-header {
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.terminal-header h1 {
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    letter-spacing: 1px;
}

/* Main terminal area */
.terminal-main {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    height: 500px;
}

/* Terminal output area */
.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    margin-bottom: 20px;
}

.output-line {
    color: #00ff00;
    font-size: 14px;
    line-height: 1.8;
    margin: 2px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output-line.system {
    color: #00cc00;
}

.output-line.error {
    color: #ff0000;
}

.output-line.info {
    color: #00ffff;
}

/* Terminal input area */
.terminal-input-area {
    display: flex;
    align-items: center;
    border-top: 1px solid #00ff00;
    padding-top: 10px;
    gap: 5px;
}

.prompt {
    color: #00ff00;
    font-size: 16px;
    font-weight: bold;
}

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

/* Dashboard styling */
.dashboard {
    border: 1px solid #00ff00;
    padding: 15px;
    background-color: #000000;
    margin: 10px 0;
}

/* Chart grid layout - Full screen impressive display */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 5px 0;
    width: 100%;
}

.chart-container {
    border: 2px solid #00ff00;
    padding: 5px;
    background-color: #000000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    min-height: 200px;
}

@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-section {
    margin-bottom: 20px;
}

.dashboard-section:last-child {
    margin-bottom: 0;
}

.dashboard-title {
    color: #00ff00;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    text-decoration: underline;
}

.dashboard-item {
    color: #00cc00;
    font-size: 13px;
    line-height: 1.6;
    margin-left: 10px;
}

.blink {
    animation: blink 1.5s infinite;
}

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

.terminal-footer {
    border-top: 2px solid #00ff00;
    margin-top: 30px;
    padding-top: 10px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* No scrollbars - terminal style */

/* Responsive design using CSS Media Queries Level 3 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .terminal {
        padding: 15px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .terminal-header h1 {
        font-size: 10px;
    }
}

/* Glow effect for retro CRT monitor look */
.terminal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Text shadow for CRT glow effect */
h1, h2, .value, .spec-title, .group-name {
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}
