/* --- START OF FILE static/terminal.css --- */

/* Terminal Container */
.terminal-window {
    background-color: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    overflow: hidden;
    font-family: 'Fira Code', 'Menlo', 'Consolas', monospace;
    border: 1px solid #333;

    /* ФИКС ВЫРАВНИВАНИЯ: */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    height: 220px;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
    text-align: left;
}

.terminal-window:hover {
    border-color: #555;
    transform: translateY(-2px);
}

/* Window Title Bar */
.terminal-bar {
    background-color: #1a1b1c;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
    user-select: none;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.term-dot.red { background-color: #ff5f56; box-shadow: 0 0 5px rgba(255, 95, 86, 0.4); }
.term-dot.yellow { background-color: #ffbd2e; box-shadow: 0 0 5px rgba(255, 189, 46, 0.4); }
.term-dot.green { background-color: #27c93f; box-shadow: 0 0 5px rgba(39, 201, 63, 0.4); }

/* Content Area */
.terminal-content {
    padding: 10px 14px;
    color: #cccccc;
    font-size: 11.5px;
    line-height: 1.4;
    overflow-y: auto;
    flex-grow: 1;
    white-space: pre-wrap;
    word-break: break-all;

    text-align: left !important;
    display: block !important;

    scrollbar-width: thin;
    scrollbar-color: #444 #0e0e0e;
}

/* Scrollbar Webkit */
.terminal-content::-webkit-scrollbar {
    width: 6px;
}
.terminal-content::-webkit-scrollbar-track {
    background: #0e0e0e;
}
.terminal-content::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 3px;
}

/* Syntax Highlighting */
.cmd-line {
    display: block;
    margin-bottom: 4px;
    width: 100%;
}

/* Prompt Colors */
.cmd-user { color: #00ff00; font-weight: 700; }
.cmd-host { color: #00ff00; font-weight: 500; opacity: 0.8; }
.cmd-dir { color: #3b8eea; font-weight: 700; }

/* ИСПРАВЛЕНИЕ: Убрали margin-right, чтобы user@server было слитно */
.cmd-sep { color: #777; margin-right: 0; }

.cmd-text { color: #ffffff; font-weight: 500; }

/* Output Style */
.cmd-output {
    color: #a0a0a0;
    display: block;
    margin-bottom: 12px;
    opacity: 0.85;
    font-size: 11px;
}

/* Cursor */
.cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background-color: #ccc;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}