/* WebOS/400 - Main Stylesheet - 5250 Inspired Modern Design */

:root {
    /* 5250 Color Palette - Modernized */
    --color-green: #00ff00;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-blue: #0066cc;
    --color-red: #ff0000;
    --color-yellow: #ffff00;
    --color-pink: #ff66ff;
    --color-turquoise: #00ffff;
    
    /* Modern variants */
    --bg-primary: #001122;
    --bg-secondary: #002244;
    --text-primary: #00ff00;
    --text-secondary: #ffffff;
    --border-color: #004466;
    --accent-color: #0088cc;
    
    /* Typography */
    --font-mono: 'Courier New', 'Lucida Console', monospace;
    --font-size-base: 16px;
    --line-height: 1.4;
}

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

body {
    font-family: var(--font-mono);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

#webos-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

/* System Header - Top Bar */
#system-header {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.system-info, .user-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

#system-name {
    color: var(--color-yellow);
    font-weight: bold;
    text-transform: uppercase;
}

#system-time {
    color: var(--text-secondary);
}

#current-user {
    color: var(--color-turquoise);
    font-weight: bold;
}

#current-job {
    color: var(--text-secondary);
}

/* Main Display Area */
#main-display {
    flex: 1;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: calc(100vh - 80px);
}

#terminal-container {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

/* Status Bar - Bottom */
#status-bar {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
    font-size: 12px;
}

.status-left, .status-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

#subsystem-status {
    color: var(--color-pink);
    font-weight: bold;
}

#job-count {
    color: var(--text-secondary);
}

#message-indicator {
    color: var(--color-red);
    font-weight: bold;
    animation: blink 1s infinite;
}

#system-load {
    color: var(--text-secondary);
}

/* Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Utility Classes */
.highlight {
    background-color: var(--accent-color);
    color: var(--color-white);
}

.error {
    color: var(--color-red);
}

.warning {
    color: var(--color-yellow);
}

.success {
    color: var(--color-green);
}

.info {
    color: var(--color-turquoise);
}
