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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #1e1e1e;
    color: #d4d4d4;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #252526;
    border-bottom: 1px solid #3e3e42;
}

.header h1 {
    font-size: 18px;
    font-weight: 500;
    color: #cccccc;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-primary {
    background: #0e639c;
    color: white;
}

.btn-primary:hover {
    background: #1177bb;
}

.btn-danger {
    background: #d32f2f;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
}

.btn-danger:hover {
    background: #f44336;
}

.tabs-container {
    background: #2d2d30;
    border-bottom: 1px solid #3e3e42;
    overflow-x: auto;
    overflow-y: hidden;
}

.tabs {
    display: flex;
    min-height: 40px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #2d2d30;
    border-right: 1px solid #3e3e42;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    position: relative;
}

.tab:hover {
    background: #37373d;
}

.tab.active {
    background: #1e1e1e;
    border-bottom: 2px solid #0e639c;
}

.tab-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tab-name {
    font-size: 13px;
    color: #cccccc;
    user-select: none;
}

.tab-close {
    margin-left: 8px;
    color: #858585;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.tab-close:hover {
    color: #ffffff;
}

.terminals {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.terminal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    padding: 10px;
}

.terminal-wrapper.active {
    display: block;
}

.terminal {
    width: 100%;
    height: 100%;
}

.xterm {
    height: 100%;
}

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