/* --- Terminal: real Debian Linux + xterm.js --- */

.webvm-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    background: #0a0a0a;
    font-family: var(--font-mono);
}

/* Toolbar */
.webvm-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #111214;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.webvm-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f0ad4e;
    box-shadow: 0 0 8px rgba(240, 173, 78, 0.7);
    flex-shrink: 0;
}

.webvm-status-dot.is-live {
    background: #5cb85c;
    box-shadow: 0 0 8px rgba(92, 184, 92, 0.7);
}

.webvm-status-pill {
    font-size: 10px;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #f0ad4e;
    color: #f0ad4e;
    white-space: nowrap;
}

.webvm-status-pill.is-live {
    border-color: #5cb85c;
    color: #5cb85c;
}

.webvm-toolbar-spacer {
    flex: 1;
}

.webvm-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.8px;
    padding: 5px 10px;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.webvm-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(74, 144, 226, 0.08);
}

/* Viewport */
.webvm-viewport {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #000;
}

.webvm-xterm {
    position: absolute;
    inset: 0;
    padding: 8px;
}

.webvm-xterm .xterm {
    height: 100%;
}

.webvm-xterm .xterm-viewport {
    overflow-y: auto;
}

/* Boot overlay */
.webvm-boot {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #0a0a0a;
    z-index: 2;
    padding: 24px;
    text-align: center;
}

.webvm-boot.hidden {
    display: none;
}

.webvm-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #5cb85c;
    animation: webvm-spin 0.9s linear infinite;
}

@keyframes webvm-spin {
    to { transform: rotate(360deg); }
}

.webvm-boot-title {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.webvm-boot-sub {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 360px;
}

