:root {
    --bg-color: #0d1117;
    --sidebar-color: #161b22;
    --terminal-bg: #010409;
    --aws-orange: #ff9900;
    --text-primary: #e6edf3;
    --text-dim: #8b949e;
    --success-green: #3fb950;
    --error-red: #f85149;
    --border-color: #30363d;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 320px;
    background-color: var(--sidebar-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mission-title {
    color: var(--aws-orange);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.mission-meta {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.meta-label { color: var(--text-dim); }
.meta-value { font-weight: 600; color: var(--aws-orange); }

.mission-brief {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-primary);
    flex-grow: 1;
    overflow-y: auto;
}

/* Terminal Styling */
.terminal-container {
    flex-grow: 1;
    background-color: var(--terminal-bg);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: relative;
}

.terminal-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-body {
    flex-grow: 1;
    font-family: 'Fira Code', 'Cascadia Code', 'Ubuntu Mono', monospace;
    font-size: 0.95rem;
    overflow-y: auto;
    padding-bottom: 4rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.prompt { color: var(--aws-orange); font-weight: bold; }
.command-text { color: var(--text-primary); }
.output-text { color: var(--text-dim); margin-left: 1rem; }
.system-msg { color: var(--success-green); font-style: italic; }

.input-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    outline: none;
}

.cursor {
    width: 8px;
    height: 1.2rem;
    background: var(--aws-orange);
    display: inline-block;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

/* Network Log Styling */
.network-activity {
    width: 280px;
    background-color: var(--bg-color);
    border-left: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.log-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-green);
    box-shadow: 0 0 0 rgba(63, 185, 80, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(63, 185, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

.log-entries {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.log-entry { margin-bottom: 0.5rem; padding-bottom: 0.25rem; border-bottom: 1px solid rgba(48, 54, 61, 0.5); }
.log-ts { color: var(--aws-orange); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
