/* GŁÓWNY KONTENER KONSOLI */
.linux-terminal-container {
    width: 100%;
    margin: 20px 0;
    background: #1e1e1e;
    color: #f8f8f2;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

/* PASEK TYTUŁOWY KONSOLI */
.terminal-header {
    background: #323232;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #444;
    user-select: none;
}

.terminal-title {
    color: #bbb;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-window-buttons {
    display: flex;
    gap: 6px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.term-close { background: #ff5f56; }
.term-minimize { background: #ffbd2e; }
.term-maximize { background: #27c93f; }

/* WRAPPER DLA ZAWARTOŚCI KONSOLI I NANO */
.terminal-body-wrapper {
    position: relative;
    width: 100%;
    height: 400px; /* Stała wysokość okna konsoli */
    background: #1e1e1e;
}

#terminal-main-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* HISTORIA POLECEŃ */
#terminal-output {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.term-boot-msg {
    color: #888;
    margin-bottom: 10px;
    font-style: italic;
}

/* LINIA WPISYWANIA KOMEND */
.terminal-input-row {
    display: flex;
    align-items: center;
    background: #151515;
    padding: 12px 15px;
    border-top: 1px solid #252525;
}

.terminal-prompt {
    color: #66d9ef;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
    user-select: none;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #a6e22e;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    outline: none;
    padding: 0;
    margin: 0;
}

/* NOWY STYL NANO - INTEGRACJA WEWNĄTRZ RAMKI KONSOLI */
#nano-editor {
    display: none; /* Włączane klasą przez JS (flex) */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111111;
    flex-direction: column;
    z-index: 10;
}

.nano-header-bar {
    background: #ffffff;
    color: #000000;
    padding: 6px 15px;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    user-select: none;
}

#nano-content {
    flex: 1;
    width: 100%;
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 15px;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    line-height: 1.5;
}

.nano-footer-bar {
    background: #222222;
    color: #cccccc;
    padding: 10px 15px;
    font-size: 0.85rem;
    display: flex;
    border-top: 1px solid #333;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.nano-info-text {
    color: #64748b;
    font-style: italic;
}

#nano-save-btn {
    background: #22c55e;
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: background 0.2s;
}

#nano-save-btn:hover {
    background: #16a34a;
}