/* ==========================================================================
   mpterm - Minimalist Shell Media Interface
   Theme: Pure Pitch-Black Monochromatic Shell (#000000)
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: #ffffff;
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Monaco, Consolas, 'DejaVu Sans Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
}

/* Shell Wrapper: Natural Inline Terminal Scroll Flow */
.shell-wrapper {
    width: 100%;
    height: 100%;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: #000000;
}

.shell-wrapper::-webkit-scrollbar {
    width: 6px;
}
.shell-wrapper::-webkit-scrollbar-thumb {
    background: #222222;
}

#output {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 4px;
    padding-bottom: 16px;
    background-color: #000000;
}

.prompt {
    color: #ffffff;
    font-weight: bold;
    margin-right: 8px;
    user-select: none;
    white-space: nowrap;
}

#cli {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    caret-color: #ffffff;
}

/* CLI Text Elements */
.line {
    word-break: break-word;
    white-space: pre-wrap;
}
.line-user {
    color: #888888;
}
.line-error {
    color: #ff5555;
}
.line-success {
    color: #ffffff;
}
.line-dim {
    color: #666666;
}

.result-item {
    padding: 2px 0;
    cursor: pointer;
    color: #cccccc;
}
.result-item:hover {
    background-color: #111111;
    color: #ffffff;
}

/* Pure Black Player Overlay */
.player-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.player-container.hidden {
    display: none;
}

.player-bar {
    height: 38px;
    background: #000000;
    border-bottom: 1px solid #222222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.player-title-text {
    font-weight: bold;
    color: #ffffff;
    font-size: 13px;
}

.player-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.state-saved {
    font-size: 10px;
    color: #888888;
    border: 1px solid #222222;
    padding: 1px 4px;
}

.state-saved.hidden {
    display: none;
}

.tv-bar {
    background: #000000;
    border-bottom: 1px solid #222222;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.tv-bar.hidden {
    display: none;
}

select {
    background: #000000;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 2px 6px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.btn-sm {
    background: #000000;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 2px 8px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.btn-sm:hover {
    background: #222222;
    border-color: #555555;
}

.iframe-frame {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #000000;
}

.iframe-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000000;
}
