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

body {
    font-family: 'Courier New', Courier, monospace;
    background: linear-gradient(135deg, #1e1e2e 0%, #0f0f1e 100%);
    color: #00ff00;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Terminal container */
.terminal-container {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: #1a1a2e;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #333;
}

/* Terminal body */
.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Terminal output */
.terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.output-line {
    margin-bottom: 5px;
    line-height: 1.2;
}

.prompt {
    color: #888;
    margin-right: 8px;
    font-weight: bold;
}

.text {
    color: #e0e0e0;
    white-space: pre;
}

.text.success {
    color: #00ff00;
}

.text.error {
    color: #ff4444;
}

.text.warning {
    color: #ffaa00;
}

.text.info {
    color: #00d4ff;
}

/* Terminal input section */
.terminal-input-section {
    border-top: 1px solid #2a2a3e;
    padding-top: 20px;
}

.terminal-input {
    width: 100%;
    background: #0f0f1e;
    border: 2px solid #2a2a3e;
    border-radius: 4px;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    padding: 10px;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

.terminal-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.terminal-input::placeholder {
    color: #555;
}

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

.terminal-body::-webkit-scrollbar-track,
.terminal-output::-webkit-scrollbar-track {
    background: #0f0f1e;
}

.terminal-body::-webkit-scrollbar-thumb,
.terminal-output::-webkit-scrollbar-thumb {
    background: #2a2a3e;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover,
.terminal-output::-webkit-scrollbar-thumb:hover {
    background: #3a3a4e;
}

/* Cursor blink animation */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00ff00;
    animation: blink 1s infinite;
    margin-left: 2px;
}

/* Card content styling - shared base */
.card-front,
.card-input,
.card-back {
    border-radius: 4px;
    padding: 12px 16px;
    margin: 10px 0;
    font-size: 16px;
    white-space: pre-wrap;
}

/* Card front - cyan accent */
.card-front {
    background: #2a2a3e;
    border: 1px solid #00d4ff;
    color: #ffffff;
}

/* User input - muted purple accent */
.card-input {
    background: #252538;
    border: 1px solid #9966cc;
    color: #ccbbee;
    font-style: italic;
}

/* Card back - green accent */
.card-back {
    background: #2a3e2a;
    border: 1px solid #44cc66;
    color: #aaffbb;
}

/* Card metadata */
.card-front .card-meta {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #3a3a4e;
    font-size: 11px !important;
    display: flex;
    flex-direction: row;
    gap: 20px;
    white-space: normal;
}

.card-front .card-category {
    color: #888 !important;
    font-size: 11px !important;
}

.card-front .card-priority {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 11px !important;
}

.card-front .card-priority.priority-high {
    color: #ff6666 !important;
}

.card-front .card-priority.priority-medium {
    color: #ffaa00 !important;
}

.card-front .card-priority.priority-low {
    color: #666 !important;
}

/* Working indicator */
.working-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #00d4ff;
}

.working-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #00d4ff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
