/**
 * Not Today - Terminal Theme Styles
 * Dracula color scheme
 */

:root {
    --bg: #282a36;
    --bg-light: #44475a;
    --fg: #f8f8f2;
    --comment: #6272a4;
    --cyan: #8be9fd;
    --green: #50fa7b;
    --orange: #ffb86c;
    --pink: #ff79c6;
    --purple: #bd93f9;
    --red: #ff5555;
    --yellow: #f1fa8c;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Terminal Container */
#terminal {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ASCII Art Header */
.ascii-art {
    color: var(--purple);
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0.8;
    white-space: pre;
}

/* System Header */
.header {
    color: var(--comment);
    margin-bottom: 15px;
    font-size: 13px;
}

/* History Container */
#history {
    margin-bottom: 10px;
}

/* Output Lines */
.line {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    word-break: break-word;
}

.line.multi-line {
    flex-direction: column;
}

.line.multi-line pre {
    margin-left: 82px;
    white-space: pre;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.4;
}

/* Timestamp */
.timestamp {
    color: var(--comment);
    margin-right: 12px;
    font-size: 0.85em;
    min-width: 70px;
    flex-shrink: 0;
}

/* Text Types */
.cmd {
    color: var(--pink);
    font-weight: 600;
}

.arg {
    color: var(--yellow);
}

.flag {
    color: var(--orange);
}

.path {
    color: var(--cyan);
}

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

.warn {
    color: var(--orange);
}

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

.info {
    color: var(--purple);
}

.text {
    color: var(--fg);
}

.comment {
    color: var(--comment);
    font-size: 0.9em;
}

/* Prompt */
.prompt-symbol {
    color: var(--green);
    margin-right: 8px;
}

/* Cursor */
.cursor {
    display: inline-block;
    width: 10px;
    height: 1.1em;
    background-color: var(--fg);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

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

/* Input Line */
.input-line {
    display: flex;
    align-items: center;
}

#input {
    background: transparent;
    border: none;
    color: var(--fg);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    caret-color: var(--green);
}

/* Utility */
.hidden {
    display: none !important;
}

/* File listing styles */
.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.file-item {
    min-width: 120px;
}

.file-dir {
    color: var(--cyan);
    font-weight: 600;
}

.file-exec {
    color: var(--green);
}

.file-link {
    color: var(--purple);
}

.file-archive {
    color: var(--red);
}

/* Table styles for commands like ps, top */
.output-table {
    font-size: 0.9em;
}

.output-table .header-row {
    color: var(--cyan);
    font-weight: 600;
}

/* Progress bar */
.progress-bar {
    display: inline-block;
    width: 200px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
    margin-left: 8px;
}

.progress-fill {
    height: 12px;
    background: var(--green);
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 600px) {
    #terminal {
        font-size: 13px;
    }

    .timestamp {
        display: none;
    }

    .ascii-art {
        font-size: 8px;
    }

    .line.multi-line pre {
        margin-left: 0;
    }
}
