body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
    font-size: 24px;
    color: #1c1e21;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 0;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ccd0d5;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
    box-sizing: border-box;
}

button {
    background-color: #1877f2;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #166fe5;
}

.filter-container {
    margin-bottom: 15px;
}

.filter-container label {
    font-weight: bold;
    margin-right: 10px;
}

.filter-container input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccd0d5;
    font-size: 14px;
    width: 250px;
}

#pipeline-container {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stage {
    background-color: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    padding: 20px;
    flex-basis: 100%; /* Each card takes full width */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    border-left: 5px solid #ccc; /* Default border color */
    box-sizing: border-box; /* Ensure padding/border is included in width */
    min-width: 0; /* Allow flex items to shrink */
}

.stage-badge {
    position: absolute;
    top: 6px; /* Align with header */
    left: -16px; /* Center on border */
    width: 32px;
    height: 32px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    background-color: #ccc;
}

.stage.color-1 { border-left-color: #409eff; }
.stage.color-1 .stage-header { background-color: #409eff; color: white; border-bottom: none; }
.stage.color-1 .stage-badge { background-color: #409eff; }

.stage.color-2 { border-left-color: #67c23a; }
.stage.color-2 .stage-header { background-color: #67c23a; color: white; border-bottom: none; }
.stage.color-2 .stage-badge { background-color: #67c23a; }

.stage.color-3 { border-left-color: #e6a23c; }
.stage.color-3 .stage-header { background-color: #e6a23c; color: white; border-bottom: none; }
.stage.color-3 .stage-badge { background-color: #e6a23c; }

.stage.color-4 { border-left-color: #f56c6c; }
.stage.color-4 .stage-header { background-color: #f56c6c; color: white; border-bottom: none; }
.stage.color-4 .stage-badge { background-color: #f56c6c; }

.stage.color-5 { border-left-color: #909399; }
.stage.color-5 .stage-header { background-color: #909399; color: white; border-bottom: none; }
.stage.color-5 .stage-badge { background-color: #909399; }

.stage-header {
    font-size: 20px;
    font-weight: 600;
    color: #303133;
    padding: 10px 15px;
    border-bottom: 1px solid #e4e7ed;
    margin: -20px -20px 0 -20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.branch-info {
    font-size: 14px;
    color: #606266;
    background-color: #f4f4f5;
    padding: 8px 12px;
    border-radius: 4px;
}

.step-details {
    font-size: 14px;
    color: #909399;
    overflow-wrap: break-word;
}

.step-details pre {
    background-color: #f7f7f7;
    border: 1px solid #e9ebf0;
    padding: 10px;
    border-radius: 4px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #333;
    overflow-x: auto;
} 