﻿/* ============================================
   BJNFNE — Terminal
   Designed & developed by DosX
   ============================================ */

/* --- Terminal --- */
.terminal {
    background: rgba(10, 10, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 720px;
    margin: 0 auto;
    contain: content;
}

.terminal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 16px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal__controls {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.terminal__ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 100%;
    font-size: 1rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.45);
    cursor: default;
    user-select: none;
    transition:
        background 0.1s,
        color 0.1s;
}

.terminal__ctrl:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.8);
}

.terminal__ctrl--close:hover {
    background: rgba(196, 43, 28, 0.7);
    color: #fff;
}

.terminal__ctrl--max::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 1px;
}

.terminal__title {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

.terminal__body {
    height: 360px;
    overflow-y: auto;
    padding: 16px;
    font-family: "JetBrains Mono", monospace;
    font-size: 16px;
    line-height: 24px;
    text-rendering: optimizeSpeed;
    scrollbar-width: thin;
    scrollbar-color: rgba(77, 144, 228, 0.35) transparent;
    cursor: default;
    user-select: text;
}

.terminal__output {
    padding-bottom: 0;
}

.terminal__body::-webkit-scrollbar {
    width: 6px;
}

.terminal__body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal__body::-webkit-scrollbar-thumb {
    background: rgba(77, 144, 228, 0.35);
    border-radius: 3px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.terminal__body::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 197, 253, 0.65);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.terminal__line {
    white-space: pre-wrap;
    word-break: break-word;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 24px;
    min-height: 24px;
    margin: 0;
    padding: 0;
}

.terminal__line span {
    font-size: 16px;
    line-height: 24px;
    vertical-align: baseline;
}

.terminal__input-line {
    display: flex;
    align-items: baseline;
    gap: 0;
    line-height: 24px;
    min-height: 24px;
}

.terminal__prompt {
    color: rgba(147, 197, 253, 0.85);
    font-size: 16px;
    line-height: 24px;
}
.terminal__colon {
    color: rgba(255, 255, 255, 0.25);
    font-size: 16px;
    line-height: 24px;
}
.terminal__path {
    color: rgba(147, 197, 253, 0.55);
    font-size: 16px;
    line-height: 24px;
}
.terminal__dollar {
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    line-height: 24px;
    margin-right: 8px;
}

.terminal__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: "JetBrains Mono", monospace;
    font-size: 16px;
    line-height: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    caret-color: #93c5fd;
    cursor: default;
}

.terminal__heading {
    color: rgba(147, 197, 253, 0.9);
    font-size: 16px;
    line-height: 24px;
}
.terminal__cmd {
    color: rgba(116, 185, 255, 0.85);
    font-size: 16px;
    line-height: 24px;
}
.terminal__accent {
    color: rgba(147, 197, 253, 0.72);
    font-size: 16px;
    line-height: 24px;
}
.terminal__link {
    color: rgba(116, 185, 255, 0.8);
    font-size: 16px;
    line-height: 24px;
}
.terminal__error {
    color: rgba(225, 112, 85, 0.9);
    font-size: 16px;
    line-height: 24px;
}
.terminal__msg {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 2px;
    padding-left: 2px;
}
