/* style.css - Shared retro styles for all pages */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');

body {
    background-color: #2c3e50; /* Dark blue-grey background */
    color: #ecf0f1; /* Light grey text */
    font-family: 'VT323', monospace;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 600px;
    border: 3px solid #3498db; /* Blue border */
    padding: 2rem;
    box-shadow: 0 0 15px #3498db, inset 0 0 10px #3498db33;
    background-color: #1a2533;
    text-align: center;
}

h1, h2 {
    font-family: 'Press Start 2P', cursive;
    color: #2ecc71; /* Green text */
    text-shadow: 0 0 5px #2ecc71;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2em;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    background-color: #1c2b3a;
    border: 2px solid #3498db;
    color: #ecf0f1;
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    box-sizing: border-box; /* Important for padding and width */
}

input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
}

button {
    background-color: #2ecc71;
    color: #1a2533;
    border: none;
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s, box-shadow 0.2s;
}

button:hover {
    background-color: #27ae60;
    box-shadow: 0 0 15px #2ecc71;
}

#error-message {
    color: #e74c3c; /* Red color for errors */
    height: 20px;
    margin-top: 1rem;
    font-weight: bold;
}

/* Dashboard Specific Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.news-box {
    border: 2px solid #3498db;
    padding: 1rem;
    text-align: left;
}

.news-box h2 {
    font-size: 1em;
    margin-top: 0;
}

.news-box p {
    font-size: 0.9em;
    line-height: 1.4;
}

/* Console Specific Styles */
.console-window {
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background-color: #000;
    border: 3px solid #00ff00;
    box-shadow: 0 0 15px #00ff00;
    font-family: 'VT323', monospace;
    color: #00ff00;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

#output {
    flex-grow: 1;
    overflow-y: auto;
    white-space: pre-wrap; /* Allows text to wrap */
    word-wrap: break-word;
}

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

.input-line span {
    margin-right: 8px;
    font-size: 1.2em;
}

#command-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 1.2em;
}

#command-input:focus {
    outline: none;
}
