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

body {
    overflow: hidden;
    background-color: #1e1e1e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Tab Bar */
.tab-bar {
    height: 40px;
    background-color: #252526;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e1e1e;
    user-select: none;
    padding-right: 12px;
    flex-shrink: 0;
    z-index: 100;
}

.editor-tabs {
    display: flex;
    align-items: center;
    height: 100%;
}

.tab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 16px;
    background-color: #2d2d2d;
    color: #969696;
    border: none;
    border-right: 1px solid #1e1e1e;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab-item:hover {
    background-color: #333333;
    color: #cccccc;
}

.tab-item.active {
    background-color: #1e1e1e;
    color: #ffffff;
    font-weight: 500;
    border-top: 2px solid #007acc;
}

.tab-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #0e639c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.15s;
}

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

.action-btn:active {
    background-color: #094771;
}

.action-btn#buildBtn {
    background-color: #16a34a;
    font-weight: 600;
}

.action-btn#buildBtn:hover {
    background-color: #15803d;
}

/* 50 / 50 Split Workspace */
.workspace-container {
    display: flex;
    flex: 1;
    width: 100vw;
    height: calc(100vh - 40px);
    overflow: hidden;
}

.editor-pane {
    flex: 1;
    width: 50vw;
    height: 100%;
    border-right: 1px solid #2d2d2d;
    background-color: #1e1e1e;
}

.preview-pane {
    flex: 1;
    width: 50vw;
    height: 100%;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    height: 38px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.preview-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.03) 0%, transparent 50%), #f8fafc;
}

.stage-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    min-height: 180px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
