﻿.terminal {
    border-radius: 0.75rem;
    overflow: hidden;
}

.terminal-font, .terminal-line, .terminal-prompt {
    font-family: 'SF Mono', 'Menlo', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

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

.dot-red {
    background: #FF5F57;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

.dot-yellow {
    background: #FEBC2E;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

.dot-green {
    background: #28C840;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

.cursor-blink {
    width: 8px;
    height: 1rem;
    display: inline-block;
    vertical-align: middle;
    margin-left: 1px;
    flex-shrink: 0;
    animation: blink 1s step-end infinite;
}

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

    50% {
        opacity: 0;
    }
}

.terminal-body::-webkit-scrollbar {
    width: 4px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-label {
    color: inherit;
    font-size: 0.7rem;
    font-family: 'SF Mono', 'Menlo', monospace;
}

/* Light */
.terminal-light {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
}

    .terminal-light .terminal-header {
        background: #f5f5f7;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .terminal-light .terminal-label {
        color: rgba(0,0,0,0.3);
    }

    .terminal-light .terminal-body {
        background: #fafafa;
    }

    .terminal-light .terminal-prompt {
        color: #1d1d1f !important;
    }

    .terminal-light .terminal-cmd {
        color: rgba(0,0,0,0.4) !important;
    }

    .terminal-light .terminal-output {
        color: rgba(0,0,0,0.55) !important;
    }

    .terminal-light .cursor-blink {
        background-color: #1d1d1f;
    }

    .terminal-light .terminal-body::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.12);
        border-radius: 2px;
    }

/* Dark */
.terminal-dark {
    background: #1c1c1e;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 8px 32px rgba(0,0,0,0.4);
}

    .terminal-dark .terminal-header {
        background: rgba(255,255,255,0.02);
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .terminal-dark .terminal-label {
        color: rgba(255,255,255,0.25);
    }

    .terminal-dark .terminal-body {
        background: transparent;
    }

    .terminal-dark .terminal-prompt {
        color: #f5f5f7 !important;
    }

    .terminal-dark .terminal-cmd {
        color: rgba(255,255,255,0.35) !important;
    }

    .terminal-dark .terminal-output {
        color: rgba(255,255,255,0.5) !important;
    }

    .terminal-dark .cursor-blink {
        background-color: #f5f5f7;
    }

    .terminal-dark .terminal-body::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.1);
        border-radius: 2px;
    }
