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

html, body {
    height: 100%;
    background: #1e1e2e;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #cdd6f4;
}

#login-screen {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: #313244;
    padding: 2rem;
    border-radius: 8px;
    width: 320px;
}

.login-box h1 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-box input {
    display: block;
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.8rem;
    border: 1px solid #45475a;
    border-radius: 4px;
    background: #1e1e2e;
    color: #cdd6f4;
    font-size: 0.9rem;
}

.login-box button {
    width: 100%;
    padding: 0.6rem;
    background: #89b4fa;
    color: #1e1e2e;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.login-box button:hover {
    background: #74c7ec;
}

.error {
    color: #f38ba8;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

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

#tab-bar {
    display: flex;
    align-items: center;
    background: #181825;
    padding: 4px 8px;
    gap: 4px;
}

#tabs {
    display: flex;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
}

.tab {
    padding: 4px 12px;
    background: #313244;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab.active {
    background: #1e1e2e;
}

.tab-close {
    font-size: 1rem;
    opacity: 0.5;
    cursor: pointer;
}

.tab-close:hover {
    opacity: 1;
    color: #f38ba8;
}

#new-tab {
    background: none;
    border: 1px solid #45475a;
    color: #cdd6f4;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#new-tab:hover {
    background: #313244;
}

#terminal-container {
    flex: 1;
    padding: 4px;
    overflow: hidden;
}

#terminal {
    height: 100%;
}

#status-bar {
    display: flex;
    justify-content: space-between;
    padding: 2px 8px;
    background: #181825;
    font-size: 0.75rem;
    color: #6c7086;
}
