/* Research Streaming Styles Import */
@import url('research-styles.css');

/* Theme System - CSS Custom Properties */
:root {
    /* Matrix Theme (default) */
    --primary-color: #00ff41;
    --primary-rgb: 0, 255, 65;
    --secondary-color: #00cc33;
    --accent-color: #0fa;
    --background-color: #0a0a0a;
    --terminal-bg: #000;
    --text-color: #00ff41;
    --command-color: #00ff41;
    --info-color: #0cc;
    --success-color: #4f4;
    --error-color: #f44;
    --feature-color: #f60;
    --philosophy-color: #c9f;
    
    /* Theme transition */
    --theme-transition: all 0.3s ease-in-out;
}

/* Cyberpunk Theme */
[data-theme="cyberpunk"] {
    --primary-color: #ff0080;
    --primary-rgb: 255, 0, 128;
    --secondary-color: #cc0066;
    --accent-color: #0ff;
    --background-color: #0a0a14;
    --terminal-bg: #000008;
    --text-color: #ff0080;
    --command-color: #ff0080;
    --info-color: #0ff;
    --success-color: #80ff80;
    --error-color: #ff4080;
    --feature-color: #ff8000;
    --philosophy-color: #ff40ff;
}

/* Amber Theme */
[data-theme="amber"] {
    --primary-color: #ffb000;
    --primary-rgb: 255, 176, 0;
    --secondary-color: #cc8800;
    --accent-color: #ffa500;
    --background-color: #1a1000;
    --terminal-bg: #000;
    --text-color: #ffb000;
    --command-color: #ffb000;
    --info-color: #ff8000;
    --success-color: #ffdd00;
    --error-color: #ff4400;
    --feature-color: #ff6600;
    --philosophy-color: #ffaa66;
}

/* Synthwave Theme */
[data-theme="synthwave"] {
    --primary-color: #ff006e;
    --primary-rgb: 255, 0, 110;
    --secondary-color: #cc0055;
    --accent-color: #8338ec;
    --background-color: #0f0518;
    --terminal-bg: #000004;
    --text-color: #ff006e;
    --command-color: #ff006e;
    --info-color: #8338ec;
    --success-color: #06ffa5;
    --error-color: #ff4757;
    --feature-color: #ffbe0b;
    --philosophy-color: #fb5607;
}

* {
    margin: 0;
    padding: 0;
    border: none;
}

input, textarea, button, select {
    border: none;
    outline: none;
}

/* Comprehensive focus styling to prevent blue outlines */
input:focus, textarea:focus, button:focus, select:focus,
*:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Custom focus styling for accessibility */
.command-input:focus {
    background: rgba(0, 255, 65, 0.05);
    transition: background 0.2s ease;
}

body {
    background: var(--background-color);
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    cursor: text; /* Indicate that clicking will focus text input */
    transition: var(--theme-transition);
}

/* Ensure interactive elements have proper cursors */
button, .voice-toggle, .control, a, [role="button"] {
    cursor: pointer !important;
}

input, textarea, select {
    cursor: text !important;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--terminal-bg) 100%);
    max-width: 1400px; /* Limit width on desktop */
    margin: 0 auto; /* Center on desktop */
    box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.1); /* Subtle glow effect */
    overflow: hidden; /* Prevent content bleeding */
    transition: var(--theme-transition);
}


.terminal {
    flex: 1;
    padding: 20px;
    background: var(--terminal-bg);
    overflow-y: auto; /* Allow scrolling when content overflows */
    overflow-x: hidden; /* Prevent horizontal overflow */
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    height: 100vh;
    cursor: text; /* Indicate that clicking focuses the input */
    position: relative;
    max-width: 100%; /* Prevent content bleeding */
    word-wrap: break-word; /* Break long words */
    transition: var(--theme-transition);
}

.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow shrinking */
    overflow: hidden; /* Prevent overflow from terminal-content */
}

/* Status Panel */
.status-panel {
    background: rgba(0, 20, 0, 0.8);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding: 8px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
    transition: var(--theme-transition);
}

.status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-label {
    color: var(--info-color);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.status-value {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
    font-size: 11px;
    animation: status-glow 3s ease-in-out infinite alternate;
}

.status-value.error {
    color: var(--error-color);
    text-shadow: 0 0 5px var(--error-color);
}

.status-value.warning {
    color: #fa0;
    text-shadow: 0 0 5px #fa0;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 0px 20px; /* Match prompt-line padding for alignment */
    background: rgba(0, 0, 0, 0.9);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.3;
    border: none;
    outline: none;
    cursor: pointer; /* Allow click to skip boot sequence */
    margin-bottom: 0;
}

.boot-line {
    color: var(--text-color);
    margin-bottom: 2px;
    opacity: 1;
    transition: var(--theme-transition);
}

.boot-line.status-line {
    color: var(--text-color);
    font-weight: bold;
    margin-top: 10px;
    transition: var(--theme-transition);
}

/* Enhanced boot-line variants for command output */
.boot-line.prompt {
    color: var(--text-color);
    font-weight: normal;
    transition: var(--theme-transition);
}

.boot-line.success {
    color: var(--text-color);
    transition: var(--theme-transition);
}

.boot-line.error {
    color: var(--text-color);
    transition: var(--theme-transition);
}

.boot-line.warning {
    color: var(--text-color);
    transition: var(--theme-transition);
}

.boot-line.info {
    color: var(--text-color);
    transition: var(--theme-transition);
}

.boot-line.feature-highlight {
    color: var(--text-color);
    transition: var(--theme-transition);
}

.boot-line.ai-highlight {
    color: var(--text-color);
    transition: var(--theme-transition);
}

.boot-line.section-header {
    color: var(--text-color);
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 4px;
    transition: var(--theme-transition);
}

/* Terminal output scrollbar */
.terminal-output::-webkit-scrollbar {
    width: 4px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #111;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #333;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.status-online {
    color: #00ff41;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff41;
}

.prompt-line {
    display: flex;
    align-items: center;
    padding: 10px 20px 20px 20px; /* Reduced top padding, maintain sides and bottom */
    flex-shrink: 0; /* Never shrink - always stay at bottom */
    background: var(--terminal-bg);
    transition: var(--theme-transition);
}

.voice-controls-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 10px;
}

.voice-controls-inline .voice-indicator {
    font-size: 14px;
    opacity: 0.7;
}

.voice-controls-inline .voice-toggle,
.voice-controls-inline .speech-toggle {
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(0, 255, 65, 0.1);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-controls-inline .voice-toggle:hover,
.voice-controls-inline .speech-toggle:hover {
    background: rgba(0, 255, 65, 0.2);
}

.voice-controls-inline .voice-toggle.active {
    background: rgba(0, 255, 65, 0.3);
    color: #00ff41;
}

.debug-panel {
    position: absolute;
    bottom: 80px; /* Above the prompt line */
    left: 0;
    right: 0;
    width: 100%;
    height: 120px; /* Fixed height for the panel */
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    z-index: 9; /* Below prompt line */
    transition: all 0.3s ease-in-out;
}

.debug-header {
    padding: 8px 15px;
    background: #1a1a1a;
    color: #0fa;
    font-weight: bold;
}

.debug-content {
    flex: 1;
    padding: 8px 15px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
}

.debug-line {
    margin-bottom: 2px;
    white-space: pre-wrap;
    word-break: break-all;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* Color coding for debug lines */
.debug-line.github { color: #0096ff; }
.debug-line.music { color: #ff006e; }
.debug-line.ai { color: #00ff41; }
.debug-line.error { color: #f44; }
.debug-line.info { color: #0cc; }
.debug-line.warning { color: #fa0; }

/* Fade out old debug lines */
.debug-line.fade-out {
    opacity: 0.3;
}

/* Scrollbar for debug content */
.debug-content::-webkit-scrollbar {
    width: 4px;
}

.debug-content::-webkit-scrollbar-track {
    background: #111;
}

.debug-content::-webkit-scrollbar-thumb {
    background: #333;
}

.debug-content::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.prompt {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
    transition: var(--theme-transition);
}

.command-input {
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    flex: 1;
    transition: var(--theme-transition);
}

/* Voice Controls */
.voice-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.voice-indicator {
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.voice-indicator.active {
    opacity: 1;
    animation: pulse 2s infinite;
}

.voice-toggle,
.speech-toggle {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.voice-toggle:hover,
.speech-toggle:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

.voice-toggle.active,
.speech-toggle.active {
    background: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}

.voice-toggle:disabled,
.speech-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Input line layout for modular system */
.input-line {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.cli-input {
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    flex: 1;
    transition: var(--theme-transition);
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
    margin-left: 2px;
    transition: var(--theme-transition);
}

/* Legacy output-line styles removed - now using boot-line for consistent styling */

.error {
    color: var(--error-color);
    transition: var(--theme-transition);
}

.success {
    color: var(--success-color);
    transition: var(--theme-transition);
}

.info {
    color: var(--info-color);
    transition: var(--theme-transition);
}

.command {
    color: var(--accent-color);
    font-weight: bold;
    transition: var(--theme-transition);
}

.clickable-command {
    cursor: pointer;
    text-decoration: underline;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
    transition: all 0.3s ease;
    animation: command-glow 2s ease-in-out infinite alternate;
}

.clickable-command:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color), 0 0 15px var(--primary-color);
    animation: command-hover-glow 1s ease-in-out infinite alternate;
}

.ai-highlight {
    color: #4f4;
    font-weight: bold;
    text-shadow: 0 0 5px #4f4;
}

.feature-highlight {
    color: var(--feature-color);
    font-weight: bold;
    transition: var(--theme-transition);
}

.philosophy {
    color: var(--philosophy-color);
    font-style: italic;
    text-shadow: 0 0 5px var(--philosophy-color);
    transition: var(--theme-transition);
}

.skill-category {
    color: #fc0;
    font-weight: bold;
}

.project-border {
    color: #0f8;
    font-weight: bold;
}

.project-content {
    color: #8fc;
}

.chat-border {
    color: #0ff;
    font-weight: bold;
}

.chat-content {
    color: #8cf;
}

.chat-user {
    color: #ff8;
    font-weight: bold;
}

.chat-ai {
    color: #8f8;
}

.chat-ai-thinking {
    color: #fa5;
    font-style: italic;
}

.logo-art {
    color: #0fa;
    font-weight: bold;
    text-shadow: 0 0 10px #0fa;
    white-space: pre;
    font-family: 'JetBrains Mono', monospace;
}

.system-info {
    color: #afc;
    white-space: pre;
}

.section-header {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

.command-line {
    color: #0cc;
    font-family: 'JetBrains Mono', monospace;
}

.command-name {
    color: var(--command-color);
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
    transition: var(--theme-transition);
}

.typing-cursor {
    color: #00ff41;
    animation: blink 1s infinite;
}


/* Terminal Content Area (consolidated) */

.commandOutput {
    flex: 1;
    overflow: hidden;
}

/* Audio Visualizer */
.audio-visualizer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
    display: none;
}

.ascii-art {
    color: var(--primary-color);
    white-space: pre;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.1;
    margin: 10px 0;
    overflow-x: auto;
    word-break: keep-all;
    text-overflow: clip;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    animation: adrian-glow 3s ease-in-out infinite alternate;
    font-weight: bold;
    transition: var(--theme-transition);
}

/* Chat Interface */
.chat-interface {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 400px;
    height: 500px;
    background: #111;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgb(0 255 65 / 10%);
}

.chat-header {
    background: #1e1e1e;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00ff41;
    font-weight: bold;
}

.close-chat {
    background: none;
    color: #f44;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 13px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 8px;
}

.user-message {
    background: #1a2332;
    color: #fff;
}

.ai-message {
    background: #1a321a;
    color: #00ff41;
}

/* Generic code styling (must come before .ai-message specific styles) */
.code-block {
    background: #111;
    padding: 10px;
    margin: 8px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    color: #0a2;
}

.inline-code {
    background: #222;
    color: #4f4;
    padding: 2px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

/* Rich formatting for LLM responses */
.ai-message .code-block {
    background: #0a0a0a;
    padding: 12px;
    margin: 8px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #0a2;
}

.ai-message .inline-code {
    background: #222;
    padding: 2px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #4f4;
}

.ai-message strong {
    color: #6f6;
    font-weight: bold;
}

.ai-message em {
    color: #8f8;
    font-style: italic;
}

.typing-indicator {
    color: #888;
    font-style: italic;
}

.chat-input-container {
    padding: 12px;
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background: #222;
    padding: 8px;
    color: #00ff41;
    font-family: inherit;
    font-size: 13px;
}

.send-btn {
    background: #031;
    color: #00ff41;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s;
}

.send-btn:hover {
    background: #042;
    box-shadow: 0 0 10px rgb(0 255 65 / 30%);
}

/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Animations */
@keyframes fade-in {
    to { opacity: 1; }
}

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

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes glow {
    0%,
    100% {
        text-shadow: 0 0 5px #00ff41;
    }

    50% {
        text-shadow: 0 0 20px #00ff41;
    }
}

@keyframes adrian-glow {
    0% {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
    100% {
        text-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color), 0 0 45px var(--primary-color);
    }
}

@keyframes command-glow {
    0% {
        text-shadow: 0 0 5px var(--accent-color);
    }
    100% {
        text-shadow: 0 0 8px var(--accent-color), 0 0 12px var(--accent-color);
    }
}

@keyframes command-hover-glow {
    0% {
        text-shadow: 0 0 8px var(--primary-color), 0 0 15px var(--primary-color);
    }
    100% {
        text-shadow: 0 0 12px var(--primary-color), 0 0 25px var(--primary-color), 0 0 35px var(--primary-color);
    }
}

@keyframes status-glow {
    0% {
        text-shadow: 0 0 3px var(--primary-color);
    }
    100% {
        text-shadow: 0 0 6px var(--primary-color), 0 0 10px var(--primary-color);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* System Monitor Interface */
.monitor-interface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #00ff41;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.monitor-header {
    background: #111;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.monitor-title {
    color: #0fa;
    font-weight: bold;
}

.monitor-controls {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
}

.monitor-time {
    color: #0cc;
}

.monitor-exit {
    color: #f66;
}

.monitor-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.monitor-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 4px;
    background: #0a0a0a;
    min-width: 280px;
}

.monitor-pane.middle-pane {
    max-width: 320px;
}

.monitor-divider {
    width: 1px;
    background: #333;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 4px 0;
}

.pane-header {
    background: #1a1a1a;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
}

.pane-title {
    color: #0fa;
}

.pane-refresh {
    color: #0f0;
    animation: pulse 2s infinite;
}

.pane-content {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.5;
}

.monitor-footer {
    background: #111;
    padding: 8px 18px;
    font-size: 15px;
}

/* Chart Container Styles */
.chart-container {
    position: relative;
    height: 180px;
    margin: 8px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    overflow: hidden;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Chart Title and Legend */
.chart-title {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 6px;
    text-align: center;
    text-transform: uppercase;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 9px;
    flex-wrap: wrap;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--info-color);
}

.chart-legend-color {
    width: 6px;
    height: 6px;
}

.footer-stats {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.footer-stats span {
    color: #888;
}

.footer-stats span span {
    color: #0cc;
    font-weight: bold;
}

/* Monitor Data Styling */
.ci-workflow {
    margin-bottom: 12px;
    padding: 6px;
    background: rgb(0 255 136 / 5%);
}

.ci-workflow.failed {
    background: rgb(255 68 68 / 5%);
}

.ci-workflow.running {
    background: rgb(255 170 0 / 5%);
}

.ci-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ci-name {
    color: #0fa;
    font-weight: bold;
}

.ci-status {
    font-size: 10px;
}

.ci-status.success { color: #0f8; }

.ci-status.failure { color: #f44; }

.ci-status.running { color: #fa0; }

.ci-details {
    font-size: 10px;
    color: #888;
    margin-left: 8px;
}

.homestead-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px 6px;
    background: rgb(0 255 65 / 2%);
}

.metric-name {
    color: #0cc;
}

.metric-value {
    color: #0f8;
    font-weight: bold;
}

.metric-critical {
    color: #f66 !important;
}

.metric-warning {
    color: #fa0 !important;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #333;
    margin: 2px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #0a2);
    transition: width 0.5s ease;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #fa0, #c80);
}

.progress-fill.critical {
    background: linear-gradient(90deg, #f44, #c00);
}

/* AI Metrics Styling */
.ai-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px 6px;
    background: rgb(0 150 255 / 2%);
}

.metric-success {
    color: #0f8 !important;
}

.cache-status {
    font-size: 10px;
    line-height: 1.4;
}

.cache-indicator {
    margin-bottom: 6px;
    font-weight: bold;
}

.cache-indicator.cache-low {
    color: #fa0;
}

.cache-indicator.cache-medium {
    color: #0cf;
}

.cache-indicator.cache-full {
    color: #0f8;
}

.optimization-tip {
    color: #888;
    font-style: italic;
}

/* Voice Interface Styling */
.voice-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.voice-indicator {
    font-size: 16px;
    animation: none;
}

.voice-indicator.listening {
    animation: voice-pulse 2s infinite;
    color: #00ff41;
}

.voice-indicator.processing {
    animation: voice-spin 1s linear infinite;
    color: #fa0;
}

.voice-indicator.thinking {
    animation: voice-think 1.5s ease-in-out infinite alternate;
    color: #0cf;
}

.voice-indicator.speaking {
    animation: voice-speak 0.5s ease-in-out infinite alternate;
    color: #f60;
}

.voice-indicator.activated {
    animation: voice-activated 0.8s ease-in-out infinite alternate;
    color: #f4f;
}

.voice-indicator.executing {
    animation: voice-execute 0.3s linear infinite;
    color: #4f4;
}

.voice-indicator.error {
    color: #f44;
    animation: voice-error 0.5s ease-in-out 3;
}

.voice-status {
    color: #888;
    min-width: 120px;
    font-size: 11px;
}

.voice-toggle {
    background: #031;
    color: #00ff41;
    padding: 4px 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: bold;
    transition: all 0.2s;
}

.voice-toggle:hover {
    background: #042;
    box-shadow: 0 0 8px rgb(0 255 65 / 30%);
}

.voice-toggle.active {
    background: #020;
    color: #4f4;
    box-shadow: 0 0 10px rgb(68 255 68 / 40%);
}

.voice-toggle.error {
    background: #300;
    color: #f44;
}

/* Voice animations */
@keyframes voice-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes voice-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes voice-think {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes voice-speak {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

@keyframes voice-activated {
    0% { text-shadow: 0 0 5px #f4f; }

    100% { text-shadow: 0 0 15px #f4f, 0 0 25px #f4f; }
}

@keyframes voice-execute {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

@keyframes voice-error {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}

/* Logo Green Styling - Make all logos use terminal green by default */
.logo, .window-title, .brand, .logo-art {
    color: var(--primary-color) !important;
    transition: var(--theme-transition);
}

.logo:hover, .brand:hover {
    color: var(--accent-color) !important;
}

/* Markdown Content Styling */
.markdown-link {
    color: #0cf;
    text-decoration: underline;
    cursor: pointer;
}

.markdown-link:hover {
    color: #4df;
    text-shadow: 0 0 5px #4df;
}


/* Animations */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Split Screen Layout */
.split-screen-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    background: var(--background-color);
    overflow: hidden;
}

.split-pane {
    display: flex;
    flex-direction: column;
    background: var(--terminal-bg);
    position: relative;
    transition: var(--theme-transition);
}

.terminal-pane {
    flex: 0 0 60%;
    min-width: 300px;
}

.monitor-pane {
    flex: 0 0 40%;
    min-width: 250px;
}

.split-header {
    background: #1e1e1e;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.split-title {
    color: var(--primary-color);
    transition: var(--theme-transition);
}

.split-controls {
    display: flex;
    gap: 6px;
}

.split-btn {
    background: #333;
    color: #ccc;
    padding: 2px 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    transition: all 0.2s;
}

.split-btn:hover {
    background: #444;
    color: var(--primary-color);
}

.split-divider {
    width: 4px;
    background: #333;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.2s;
}

.split-divider:hover {
    background: #555;
}

.divider-handle {
    color: #666;
    font-size: 12px;
    writing-mode: vertical-rl;
    -webkit-user-select: none;
    user-select: none;
}

.split-terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.commandOutput-split {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-color);
    transition: var(--theme-transition);
}

.prompt-line-split {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--terminal-bg);
    flex-shrink: 0;
}

.split-monitor-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.monitor-content-split {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    overflow-y: auto;
}

.monitor-pane-split {
    flex: 1;
    min-height: 120px;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
}

.monitor-pane-split .pane-header {
    font-size: 11px;
    padding: 6px 8px;
}

.monitor-pane-split .pane-content {
    flex: 1;
    padding: 6px;
    font-size: 11px;
    overflow: hidden;
}

.monitor-pane-split .chart-container {
    height: 100px;
    margin: 4px 0;
}

/* Responsive Design */
@media (width >= 1200px) {    
    .terminal {
        font-size: 15px; /* Slightly larger on desktop */
    }
}

@media (width <= 768px) {
    .container {
        max-width: 100%; /* Full width on mobile */
        margin: 0;
        box-shadow: none;
    }
    
    /* Split screen mobile layout - top/bottom */
    .split-screen-container {
        flex-direction: column;
    }
    
    .terminal-pane {
        flex: 0 0 60%;
        min-height: 200px;
    }
    
    .monitor-pane {
        flex: 0 0 40%;
        min-height: 150px;
    }
    
    .split-divider {
        width: 100%;
        height: 4px;
        cursor: row-resize;
        flex-direction: row;
    }
    
    .divider-handle {
        writing-mode: horizontal-tb;
        transform: rotate(90deg);
    }
    
    .monitor-content-split {
        flex-direction: row;
        gap: 2px;
        padding: 2px;
    }
    
    .monitor-pane-split {
        min-height: 80px;
        min-width: 100px;
    }
    
    .monitor-pane-split .chart-container {
        height: 60px;
    }
    
    .split-header {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .commandOutput-split {
        font-size: 12px;
        padding: 8px;
    }
    
    .prompt-line-split {
        padding: 8px;
    }
    
    /* Original monitor styles for mobile */
    .monitor-content {
        flex-direction: column;
    }
    
    .monitor-divider {
        height: 1px;
        width: 100%;
        font-size: 0;
    }
    
    .monitor-pane {
        height: 50%;
    }
    
    .monitor-header {
        font-size: 16px;
        padding: 8px 16px;
    }
    
    .monitor-controls {
        font-size: 12px;
    }
    
    .pane-header {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .pane-content {
        font-size: 13px;
        padding: 10px;
    }
    
    .monitor-footer {
        font-size: 13px;
        padding: 6px 16px;
    }
    
    .terminal {
        font-size: 12px;
        padding: 15px;
    }
    
    .prompt-line {
        padding: 15px;
        left: 0;
        right: 0;
        width: 100%;
    }
}