.terminalWrapper { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #1e1e1e; } .terminalHeader { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; background: #2d2d2d; border-bottom: 1px solid #3e3e3e; flex-shrink: 0; gap: 0.5rem; } .terminalStatus { display: flex; align-items: center; gap: 0.5rem; min-width: 0; } .terminalStatus .statusDot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .terminalStatus .statusText { font-size: 0.8rem; color: #d4d4d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .terminalActions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; } .terminalClose { padding: 0.25rem 0.6rem; background: transparent; border: 1px solid #666; border-radius: 6px; color: #d4d4d4; cursor: pointer; font-size: 0.8rem; } .terminalClose:hover { background: #3e3e3e; } .terminalContainer { flex: 1; min-height: 0; position: relative; overflow: hidden; } .terminalContainer :global(.xterm) { position: absolute; inset: 0; height: 100% !important; width: 100% !important; } .terminalContainer :global(.xterm-viewport) { height: 100% !important; background: #1e1e1e !important; } .terminalContainer :global(.xterm-screen) { height: 100% !important; } .terminalOverlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); display: grid; place-content: center; z-index: 10; } .terminalOverlayContent { background: #2d2d2d; border: 1px solid #3e3e3e; border-radius: 10px; padding: 1.5rem; text-align: center; max-width: 400px; color: #d4d4d4; } .terminalOverlayContent h3 { margin: 0 0 0.5rem; color: #f14c4c; } .terminalOverlayContent p { margin: 0 0 1rem; font-size: 0.9rem; } .terminalOverlayActions { display: flex; gap: 0.5rem; justify-content: center; } .terminalReconnectBanner { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; background: #3e3e3e; color: #f5f543; font-size: 0.8rem; flex-shrink: 0; } .spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.75s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } @media (max-width: 767px) { .terminalOverlayContent { margin: 0 1rem; } }