/**
 * CTFCEPTION TERMINAL STYLESHEET
 * Authentically styled terminal console emulator
 */

.terminal-wrapper {
    background: #06080d;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 580px;
}

.terminal-top-bar {
    background: #0d121c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.term-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.term-btn-red { background: #ef4444; }
.term-btn-yellow { background: #f59e0b; }
.term-btn-green { background: #10b981; }

.terminal-title-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.terminal-scroll-area {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
    cursor: text;
}

/* Custom Scrollbar */
.terminal-scroll-area::-webkit-scrollbar,
.inspector-body::-webkit-scrollbar,
.file-list::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-scroll-area::-webkit-scrollbar-track,
.inspector-body::-webkit-scrollbar-track {
    background: #06080d;
}

.terminal-scroll-area::-webkit-scrollbar-thumb,
.inspector-body::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}

.terminal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: var(--saffron-500);
}

/* Terminal Input Line */
.terminal-input-row {
    background: #090d14;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.term-prompt {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--saffron-500);
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ffffff;
}

/* Output Formatting */
.term-line {
    margin-bottom: 0.4rem;
    word-break: break-word;
}

.term-banner {
    font-family: monospace;
    font-size: 0.6rem;
    line-height: 1.1;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
    white-space: pre;
    overflow-x: hidden;
}

.term-saffron {
    color: var(--gold-light);
    font-weight: 600;
}

.term-cyan {
    color: var(--cyan-400);
}

.term-green {
    color: var(--emerald-400);
}

.term-yellow {
    color: #fde047;
}

.term-dim {
    color: var(--text-dim);
}

.term-cmd {
    color: var(--saffron-500);
    font-weight: 700;
}

.term-highlight {
    color: #ffffff;
    font-weight: 600;
}

.term-user-cmd {
    color: #ffffff;
    font-weight: 600;
}

.term-error {
    color: var(--red-400);
}

.term-warning {
    color: #fbbf24;
}

.term-box-header {
    color: var(--gold-light);
    font-weight: 700;
    margin: 0.5rem 0;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.3);
    padding-bottom: 0.25rem;
}

.term-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
}

.term-col-cmd {
    width: 220px;
    color: var(--cyan-400);
    padding: 0.25rem 0;
    vertical-align: top;
    font-weight: 600;
}

.term-col-desc {
    color: var(--text-muted);
    padding: 0.25rem 0;
    vertical-align: top;
}

.term-status-panel {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.term-file-content {
    background: #040508;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.term-file-header {
    background: #0d121c;
    color: var(--saffron-500);
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-file-content pre {
    padding: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: #cbd5e1;
}

.term-tree {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0.5rem 0;
}

.term-file {
    color: #e2e8f0;
}

.term-zip {
    color: var(--gold-light);
    font-weight: 700;
}

.term-py {
    color: var(--cyan-400);
}

.term-tag {
    color: var(--saffron-500);
    font-size: 0.7rem;
}

.term-link {
    color: var(--cyan-400);
    text-decoration: underline;
}

.term-scan-result {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid var(--border-cyan);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Success Box in Terminal */
.term-success-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--saffron-500);
    box-shadow: 0 0 20px var(--saffron-glow);
    border-radius: 6px;
    padding: 1.25rem;
    margin: 1rem 0;
    text-align: center;
}

.term-success-title {
    color: var(--gold-light);
    font-weight: 700;
}

.term-flag-container {
    background: #020305;
    border: 1px dashed var(--saffron-500);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin: 0.5rem 0;
}

.term-flag-label {
    font-size: 0.7rem;
    color: var(--saffron-500);
    letter-spacing: 1px;
}

.term-flag-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0.25rem;
    user-select: all;
}

.term-quote {
    font-style: italic;
    color: var(--gold-light);
    margin-top: 0.5rem;
}

