.container {
    display: grid;
    grid-template-columns: repeat(3, 0fr);
    gap: 8px;
    // padding: 12px;

    @media (max-width: 900px) {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Stages & Steps ── */
.stages-section {
    margin: 16px 12px;
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.stages-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stages-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.stages-subtitle {
    font-size: 12px;
    color: #888;
    margin: 2px 0 0;
}

.btn-add-stage {
    background: #fff;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #333;

    &:hover {
        background: #f5f5f5;
    }
}

.stages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stage-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fafafa;
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drag-handle {
    color: #bbb;
    font-size: 16px;
    cursor: grab;
    letter-spacing: -2px;
}

.stage-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;

    &.badge-blue {
        background: #e8f0fe;
        color: #1a73e8;
    }

    &.badge-green {
        background: #e6f4ea;
        color: #34a853;
    }
}

.stage-name-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    background: #fff;
    outline: none;

    &:focus {
        border-color: #1a73e8;
    }
}

.collapse-icon {
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}

/* Steps */
.steps-list {
    margin-top: 12px;
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    min-width: 48px;
}

.step-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.activity-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 13px;
    color: #555;
    background: #fff;
    cursor: pointer;
    min-width: 160px;

    &:focus {
        outline: none;
        border-color: #1a73e8;
    }
}

.optional-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

.delete-step {
    font-size: 14px;
    cursor: pointer;
    color: #aaa;

    &:hover {
        color: #e53935;
    }
}

.btn-add-step {
    margin-top: 4px;
    background: #fff;
    border: 1.5px dashed #ccc;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    width: fit-content;

    &:hover {
        background: #f0f0f0;
    }
}