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

html, body {
    height: 100%;
    background: #0a0e1a;
    color: #e0e0e0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#terminal-container {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* xterm.js helper elements (textarea, char measurement spans) are 52px tall
   and sit above the terminal rows, causing visible artifacts. The DOM renderer
   places them in-flow before .xterm-rows — they must not occupy visual space. */
.xterm .xterm-helpers {
    overflow: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Make scrollbar visible on dark theme */
.xterm .xterm-viewport::-webkit-scrollbar {
    width: 10px;
}
.xterm .xterm-viewport::-webkit-scrollbar-track {
    background: #111827;
}
.xterm .xterm-viewport::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 5px;
}
.xterm .xterm-viewport::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* The helper textarea still needs to receive keyboard events */
.xterm .xterm-helper-textarea {
    position: absolute !important;
    opacity: 0 !important;
}

#footer {
    display: flex;
    align-items: center;
    padding: 4px 16px;
    background: #111827;
    border-top: 1px solid #1f2937;
    flex-shrink: 0;
    height: 24px;
}

#footer .status {
    font-size: 11px;
    color: #6b7280;
}

#footer .status.ready {
    color: #66bb6a;
}

#footer .status.error {
    color: #ef5350;
}
