/* Terminal Modal Styles */
.terminal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Slate 900 with opacity */
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.terminal-window {
    width: 90%;
    max-width: 700px;
    background: #0f172a;
    /* Slate 900 */
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', Courier, monospace;
    /* Monospace for terminal feel */
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.terminal-modal-overlay.active .terminal-window {
    transform: scale(1);
}

/* Terminal Header (Mac Style) */
.terminal-header {
    background: #1e293b;
    /* Slate 800 */
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ef4444;
    cursor: pointer;
}

.terminal-dot.yellow {
    background: #f59e0b;
}

.terminal-dot.green {
    background: #22c55e;
}

.terminal-title {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    flex-grow: 1;
    text-align: center;
    margin-right: 36px;
    /* Balance the dots */
}

/* Terminal Body */
.terminal-body {
    padding: 24px;
    color: #a5b4fc;
    /* Indigo 300 - Matrix/Code look */
    min-height: 300px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.terminal-prompt {
    color: #22c55e;
    /* Green */
    margin-right: 8px;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: #22c55e;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-command {
    color: #fff;
    font-weight: bold;
}

.terminal-output {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #cbd5e1;
    /* Slate 300 */
    white-space: pre-wrap;
    /* Preserve formatting */
}

.terminal-link {
    color: #38bdf8;
    /* Sky 400 */
    text-decoration: none;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.5);
    transition: all 0.2s;
}

.terminal-link:hover {
    color: #7dd3fc;
    border-bottom-style: solid;
}

.highlight-keyword {
    color: #f472b6;
}

/* Pink */
.highlight-string {
    color: #fde047;
}

/* Yellow */