/* Terminal Window Styles */
.terminal-window {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow);
    font-family: var(--font-mono);
}

.terminal-header {
    background-color: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close {
    background-color: #ff5f57;
}

.btn-minimize {
    background-color: #febc2e;
}

.btn-maximize {
    background-color: #28c840;
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 300px;
    background-color: var(--bg-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Terminal Text */
.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.terminal-line .prompt {
    color: var(--accent-green);
    margin-right: 0.5rem;
    font-weight: 700;
}

.terminal-line .command {
    color: var(--text-primary);
}

.terminal-line .cursor {
    color: var(--accent-green);
    animation: cursor-blink 1s infinite;
    margin-left: 2px;
}

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

.terminal-output {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.terminal-output .success {
    color: var(--accent-green);
}

.terminal-output .error {
    color: #ff7b72;
}

.terminal-output .info {
    color: var(--accent-blue);
}

.terminal-output .warning {
    color: #febc2e;
}

/* Interactive Console */
.terminal-window.interactive .terminal-body {
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
}

.console-output {
    margin-bottom: 1rem;
}

.console-output-line {
    margin: 0.5rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.console-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.console-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    caret-color: var(--accent-green);
}

.console-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Loading Animation */
.loading {
    display: inline-block;
    color: var(--accent-green);
}

.loading:after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Typing Animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end);
}

/* Syntax Highlighting */
.syntax-keyword {
    color: #ff7b72;
}

.syntax-string {
    color: #a5d6ff;
}

.syntax-number {
    color: #79c0ff;
}

.syntax-function {
    color: #d2a8ff;
}

.syntax-comment {
    color: var(--text-secondary);
    font-style: italic;
}

.syntax-operator {
    color: #ff7b72;
}

.syntax-bracket {
    color: var(--text-primary);
}

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

.terminal-body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Output Types */
.output-success {
    color: var(--accent-green);
}

.output-error {
    color: #ff7b72;
    background-color: rgba(255, 123, 114, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.output-info {
    color: var(--accent-blue);
}

.output-warning {
    color: #febc2e;
    background-color: rgba(254, 188, 46, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

/* Candidate Card in Console */
.candidate-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.candidate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.candidate-name {
    color: var(--accent-blue);
    font-weight: 700;
}

.candidate-status {
    color: var(--accent-green);
    font-size: 0.85rem;
}

.candidate-details {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.candidate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background-color: var(--bg-primary);
    color: var(--accent-green);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

/* Responsive Terminal */
@media (max-width: 768px) {
    .terminal-body {
        padding: 1rem;
        font-size: 0.85rem;
        min-height: 250px;
    }

    .terminal-window.interactive .terminal-body {
        min-height: 300px;
        max-height: 400px;
    }

    .terminal-header {
        padding: 0.5rem 0.75rem;
    }

    .terminal-title {
        font-size: 0.75rem;
    }

    .terminal-buttons span {
        width: 10px;
        height: 10px;
    }
}
