/* Terminal Theme - Dark Mode */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #00ff41;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    height: 100vh;
}

.terminal-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 8px;
    margin: 0;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.1);
}

/* Header */
.terminal-header {
    background: #1e1e1e;
    border-bottom: 1px solid #333;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
    gap: 10px;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
}

.robot-emoji {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.status-indicator {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.control-btn:hover {
    background: #444;
    border-color: #666;
}

.control-btn.active {
    background: #00ff41;
    color: #000;
    border-color: #00ff41;
}

/* Terminal Output */
.terminal-output {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    font-size: 13px;
    line-height: 1.5;
    max-height: calc(100vh - 120px);
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

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

.terminal-output::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

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

/* Log Entry Styles */
.log-entry {
    margin-bottom: 3px;
    padding: 2px 0;
    animation: fadeIn 0.3s ease-in;
    word-wrap: break-word;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.log-timestamp {
    color: #666;
    font-size: 11px;
}

.log-level {
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 2px;
    margin: 0 5px;
    font-size: 11px;
}

.log-level.INFO { background: #1e3a8a; color: #60a5fa; }
.log-level.SUCCESS { background: #14532d; color: #4ade80; }
.log-level.WARN { background: #451a03; color: #fbbf24; }
.log-level.ERROR { background: #7f1d1d; color: #f87171; }
.log-level.DEBUG { background: #581c87; color: #c084fc; }
.log-level.MEMORY { background: #164e63; color: #22d3ee; }
.log-level.DECISION { background: #713f12; color: #facc15; }
.log-level.TWITTER { background: #1d4ed8; color: #3b82f6; }

.log-module {
    color: #00ffff;
    font-weight: 600;
    font-size: 11px;
}

.log-message {
    color: #00ff41;
    margin-left: 5px;
}

.log-data {
    color: #888;
    font-size: 11px;
    margin-left: 10px;
    font-style: italic;
}

/* Boot Messages */
.boot-message {
    color: #00ff41;
    text-align: center;
    padding: 50px 20px;
    animation: typingEffect 2s ease-in-out;
}

.boot-line {
    margin-bottom: 10px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Terminal Input */
.terminal-input {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    font-size: 13px;
    border-radius: 0 0 8px 8px;
}

.prompt {
    color: #00ff41;
    font-weight: bold;
    margin-right: 5px;
}

.cursor-text {
    color: #666;
    flex: 1;
}

.cursor {
    color: #00ff41;
    animation: blink 1s step-end infinite;
    font-weight: bold;
}

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

/* Stats Panel */
.stats-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 11px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    max-width: 200px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    gap: 10px;
}

.stat-label {
    color: #888;
}

.stat-value {
    color: #00ff41;
    font-weight: 600;
}

/* Connection Status Colors */
.status-indicator.connected {
    color: #4ade80 !important;
}

.status-indicator.disconnected {
    color: #f87171 !important;
}

.status-indicator.connecting {
    color: #fbbf24 !important;
    animation: pulse 1s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    
    .terminal-header {
        padding: 8px 10px;
    }
    
    .terminal-title {
        font-size: 14px;
    }
    
    .control-btn {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .terminal-output {
        padding: 10px;
        font-size: 11px;
    }
    
    .stats-panel {
        top: 70px;
        right: 10px;
        padding: 6px 8px;
        font-size: 10px;
        max-width: 150px;
    }
}

/* Special Effects */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Scrollbar Animation */
.terminal-output.new-message::-webkit-scrollbar-thumb {
    background: #00ff41;
    transition: background 0.3s ease;
}

/* Highlight recent messages */
.log-entry.recent {
    background: rgba(0, 255, 65, 0.05);
    border-left: 2px solid #00ff41;
    padding-left: 8px;
    animation: highlight 1s ease-out;
}

@keyframes highlight {
    0% { background: rgba(0, 255, 65, 0.2); }
    100% { background: rgba(0, 255, 65, 0.05); }
}