/* Interactive Terminal */
.interactive-terminal {
    background: linear-gradient(145deg, #0d1117, #161b22);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid #30363d;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    max-height: 400px;
    position: relative;
    width: 100%;
    min-width: 0;
}

.interactive-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.5), transparent);
}

.terminal-header {
    background: linear-gradient(135deg, #21262d, #30363d);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #30363d;
    position: relative;
}

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

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.control:hover {
    opacity: 0.7;
}

.close { 
    background: linear-gradient(135deg, #ff5f57, #ff6b6b);
    box-shadow: 0 2px 4px rgba(255, 95, 87, 0.3);
}

.minimize { 
    background: linear-gradient(135deg, #ffbd2e, #ffcc02);
    box-shadow: 0 2px 4px rgba(255, 189, 46, 0.3);
}

.maximize { 
    background: linear-gradient(135deg, #28ca42, #51cf66);
    box-shadow: 0 2px 4px rgba(40, 202, 66, 0.3);
}

.terminal-title {
    color: #58a6ff;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(88, 166, 255, 0.3);
}

.terminal-body {
    padding: 20px;
    background: linear-gradient(145deg, #0d1117, #0a0d14);
    min-height: 300px;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.terminal-output {
    font-size: 0.85rem;
    line-height: 1.4;
}

.terminal-line {
    margin-bottom: 4px;
    color: #ffffff;
}

.prompt {
    color: #7c3aed;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.command {
    color: #f1f5f9;
    font-weight: 500;
}

.typing {
    color: #f1f5f9;
}

.cursor {
    color: #7c3aed;
    animation: blink 1s infinite;
    text-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.85rem;
    outline: none;
    flex: 1;
    margin-left: 10px;
    caret-color: #7c3aed;
}

.terminal-input:focus {
    outline: none;
}

.welcome {
    margin-bottom: 8px;
}

.welcome-text {
    color: #10b981;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.command-output {
    color: #e2e8f0;
    margin-left: 0;
    font-weight: 500;
}

.error-output {
    color: #ef4444;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.success-output {
    color: #10b981;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

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

/* Terminal Scrollbar */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

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

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

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}
